diff --git a/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java b/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java index ff384a4..9ad84e1 100644 --- a/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java +++ b/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java @@ -58,7 +58,7 @@ public void start() throws IOException { displayNotFoundWarning(); } super.start(); - if (UPDATE_GEM.getValue() && !HAS_UPDATED_SOLARGRAPH.getAndSet(true)) { + if (UPDATE_GEM.getValue() && !getCommands().isEmpty() && !HAS_UPDATED_SOLARGRAPH.getAndSet(true)) { GemHelper.scheduleUpdate("Solargraph", SOLARGRAPH_UPDATE_DELAY, GEM_PATH); } }