Java artifacts for buildship30 plugin. Fix semantic tokens refresh.

This commit is contained in:
aboyko
2024-04-30 10:28:02 -04:00
parent 77cac434db
commit 4ca41cf0e0
4 changed files with 19 additions and 1 deletions

View File

@@ -37,7 +37,9 @@ public final class JpqlSupportState {
private synchronized void setEnabled(boolean enabled) {
if (this.enabled != enabled) {
this.enabled = enabled;
server.getAsync().execute(() -> server.getClient().refreshSemanticTokens());
if (server.getWorkspaceService().supportsSemanticTokensRefresh()) {
server.getAsync().execute(() -> server.getClient().refreshSemanticTokens());
}
}
}
}