performance: point spring at the exact config location and avoid config merge

This commit is contained in:
Martin Lippert
2019-05-08 13:48:07 +02:00
parent 5abc6f9df0
commit 04fad634cb
3 changed files with 9 additions and 3 deletions

View File

@@ -62,6 +62,12 @@ public class SpringBootLanguageServer extends STS4LanguageServerProcessStreamCon
command.addAll(getJVMArgs());
StringBuilder configLocation = new StringBuilder(languageServerRoot);
configLocation.append("BOOT-INF" + File.separator + "classes");
configLocation.append(File.separator);
configLocation.append("application.properties");
command.add("-Dspring.config.location=file:" + configLocation.toString());
command.add("org.springframework.ide.vscode.boot.app.BootLanguagServerBootApp");
setCommands(command.build());
}

View File

@@ -0,0 +1,3 @@
spring.main.banner-mode=off
languageserver.extension-id=vscode-spring-boot
languageserver.completion-trigger-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.

View File

@@ -1,3 +0,0 @@
languageserver:
extension-id: vscode-spring-boot
completion-trigger-characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.