File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
commons/commons-language-server/src/main/java/org/springframework/ide/vscode/commons/languageserver/util
spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/app Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ cd ../headless-services
55./mvnw clean install -Dmaven.test.skip=true
66
77cd $workdir
8- ./mvnw -Psnapshot -Pe431 clean install -Dmaven.test.skip=true
8+ ./mvnw -Psnapshot -Pe432 clean install -Dmaven.test.skip=true
Original file line number Diff line number Diff line change 1010 *******************************************************************************/
1111package org .springframework .ide .vscode .commons .languageserver .util ;
1212
13+ import org .springframework .context .annotation .Condition ;
14+ import org .springframework .context .annotation .ConditionContext ;
15+ import org .springframework .core .type .AnnotatedTypeMetadata ;
16+
1317/**
1418 * LSP Client information utilities
1519 *
@@ -43,5 +47,12 @@ public static Client currentClient() {
4347 }
4448 return client ;
4549 }
50+
51+ public static class OnNotEclipseClient implements Condition {
52+ @ Override
53+ public boolean matches (ConditionContext context , AnnotatedTypeMetadata metadata ) {
54+ return LspClient .currentClient () != Client .ECLIPSE ;
55+ }
56+ }
4657
4758}
Original file line number Diff line number Diff line change 1414
1515import org .springframework .beans .factory .annotation .Qualifier ;
1616import org .springframework .context .annotation .Bean ;
17+ import org .springframework .context .annotation .Conditional ;
1718import org .springframework .context .annotation .Configuration ;
1819import org .springframework .ide .vscode .boot .java .cron .CronReconciler ;
1920import org .springframework .ide .vscode .boot .java .cron .CronSemanticTokens ;
5152import org .springframework .ide .vscode .boot .java .spel .JdtSpelSemanticTokensProvider ;
5253import org .springframework .ide .vscode .boot .java .spel .SpelReconciler ;
5354import org .springframework .ide .vscode .boot .java .spel .SpelSemanticTokens ;
55+ import org .springframework .ide .vscode .commons .languageserver .util .LspClient ;
5456import org .springframework .ide .vscode .commons .languageserver .util .SimpleLanguageServer ;
5557
5658@ Configuration (proxyBeanMethods = false )
@@ -124,6 +126,7 @@ public class JdtConfig {
124126 return new EntityIdForRepoReconciler ();
125127 }
126128
129+ @ Conditional (LspClient .OnNotEclipseClient .class )
127130 @ Bean JavaSemanticTokensProvider javaSemanticTokens () {
128131 return new JavaSemanticTokensProvider ();
129132 }
You can’t perform that action at this time.
0 commit comments