performance: point spring at the exact config location and avoid config merge
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
spring.main.banner-mode=off
|
||||
languageserver.extension-id=vscode-spring-boot
|
||||
languageserver.completion-trigger-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.
|
||||
@@ -1,3 +0,0 @@
|
||||
languageserver:
|
||||
extension-id: vscode-spring-boot
|
||||
completion-trigger-characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.
|
||||
Reference in New Issue
Block a user