Skip to content

Commit

Permalink
Strictly specify application.properties for LS process at launch
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Oct 11, 2024
1 parent 0954e39 commit 7532aa3
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ private List<String> getJVMArgs() {
// args.add("-Xrunjdwp:server=y,transport=dt_socket,address=1044,suspend=n");
args.add("-Xmx1024m");
args.add("-XX:TieredStopAtLevel=1");
args.add("-Dspring.config.location=classpath:/application.properties");

addCustomJVMArgs(args);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public BoshLanguageServer() {
"bosh-language-server",
Arrays.asList(
"-Dlsp.lazy.completions.disable=true",
"-XX:TieredStopAtLevel=1"
"-XX:TieredStopAtLevel=1",
"-Dspring.config.location=classpath:/application.properties"
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public CloudFoundryManifestLanguageServer() {
"manifest-yaml-language-server",
Arrays.asList(
"-Dlsp.lazy.completions.disable=true",
"-XX:TieredStopAtLevel=1"
"-XX:TieredStopAtLevel=1",
"-Dspring.config.location=classpath:/application.properties"
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public ConcourseLanguageServer() {
"concourse-language-server",
Arrays.asList(
"-Dlsp.lazy.completions.disable=true",
"-XX:TieredStopAtLevel=1"
"-XX:TieredStopAtLevel=1",
"-Dspring.config.location=classpath:/application.properties"
)
);

Expand Down
3 changes: 3 additions & 0 deletions vscode-extensions/vscode-bosh/lib/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export function activate(context: VSCode.ExtensionContext) {
CONNECT_TO_LS: false,
extensionId: 'vscode-bosh',
jvmHeap: "48m",
vmArgs: [
"-Dspring.config.location=classpath:/application.properties"
],
workspaceOptions: VSCode.workspace.getConfiguration("bosh.ls"),
clientOptions: {
documentSelector: [
Expand Down
3 changes: 3 additions & 0 deletions vscode-extensions/vscode-concourse/lib/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export function activate(context: VSCode.ExtensionContext) {
CONNECT_TO_LS: false,
extensionId: 'vscode-concourse',
jvmHeap: "48m",
vmArgs: [
"-Dspring.config.location=classpath:/application.properties"
],
workspaceOptions: VSCode.workspace.getConfiguration("concourse.ls"),
clientOptions: {
documentSelector: [
Expand Down
3 changes: 3 additions & 0 deletions vscode-extensions/vscode-manifest-yaml/lib/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export function activate(context: VSCode.ExtensionContext) {
extensionId: 'vscode-manifest-yaml',
workspaceOptions: VSCode.workspace.getConfiguration("cloudfoundry-manifest.ls"),
jvmHeap: '64m',
vmArgs: [
"-Dspring.config.location=classpath:/application.properties"
],
clientOptions: {
documentSelector: [
{
Expand Down
1 change: 1 addition & 0 deletions vscode-extensions/vscode-spring-boot/lib/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function activate(context: ExtensionContext): Thenable<ExtensionAPI> {
preferJdk: true,
jvmHeap: '1024m',
vmArgs: [
"-Dspring.config.location=classpath:/application.properties"
],
checkjvm: (context: ExtensionContext, jvm: commons.JVM) => {
let version = jvm.getMajorVersion();
Expand Down

0 comments on commit 7532aa3

Please sign in to comment.