From d6dba8d88bdd136837f576669bf8e0a53cad8cd7 Mon Sep 17 00:00:00 2001 From: "Pierre-Yves B." <10694593+PyvesB@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:07:35 +0200 Subject: [PATCH] Do not try to update Solargraph if command not found --- .../server/SolargraphStreamConnectionProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }