Skip to content

Commit

Permalink
Do not try to update Solargraph if command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 17, 2024
1 parent 4608377 commit 1bbac2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1bbac2c

Please sign in to comment.