JDT semantic tokens provider for non-eclipse clients only
This commit is contained in:
@@ -14,6 +14,7 @@ import java.util.Optional;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Conditional;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.ide.vscode.boot.java.cron.CronReconciler;
|
||||
import org.springframework.ide.vscode.boot.java.cron.CronSemanticTokens;
|
||||
@@ -51,6 +52,7 @@ import org.springframework.ide.vscode.boot.java.spel.JdtSpelReconciler;
|
||||
import org.springframework.ide.vscode.boot.java.spel.JdtSpelSemanticTokensProvider;
|
||||
import org.springframework.ide.vscode.boot.java.spel.SpelReconciler;
|
||||
import org.springframework.ide.vscode.boot.java.spel.SpelSemanticTokens;
|
||||
import org.springframework.ide.vscode.commons.languageserver.util.LspClient;
|
||||
import org.springframework.ide.vscode.commons.languageserver.util.SimpleLanguageServer;
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@@ -124,6 +126,7 @@ public class JdtConfig {
|
||||
return new EntityIdForRepoReconciler();
|
||||
}
|
||||
|
||||
@Conditional(LspClient.OnNotEclipseClient.class)
|
||||
@Bean JavaSemanticTokensProvider javaSemanticTokens() {
|
||||
return new JavaSemanticTokensProvider();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user