Skip to content

Commit

Permalink
switch OR statements
Browse files Browse the repository at this point in the history
to prevent java.lang.NoSuchMethodError: 'boolean
org.eclipse.lsp4e.LanguageServerWrapper.startupFailed()'
when vendors has yet updated LSP4E. This is only a small workaround
because the exception is still thrown when the LS config contains errors
and the startup fails.
  • Loading branch information
ghentschke committed Sep 16, 2024
1 parent 2639a46 commit e219623
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private boolean projectOptionsDifferFromWorkspace() {
}

private boolean isLsActive() {
return LspUtils.getLanguageServers(false).stream().findFirst().filter(w -> w.startupFailed() || w.isActive())
return LspUtils.getLanguageServers(false).stream().findFirst().filter(w -> w.isActive() || w.startupFailed())
.isPresent();
}

Expand Down

0 comments on commit e219623

Please sign in to comment.