From 28d63159b17fcd429fe672c2281ac53648ad2269 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Fri, 20 Dec 2024 16:00:04 +0100 Subject: [PATCH] SLVSCODE-951 Use a language server with core monitoring --- its/userdir/User/settings.json | 2 +- scripts/dependencies.json | 2 +- src/lsp/server.ts | 1 + test/userdir/User/settings.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/its/userdir/User/settings.json b/its/userdir/User/settings.json index ed41f9377..12ad97e90 100644 --- a/its/userdir/User/settings.json +++ b/its/userdir/User/settings.json @@ -14,7 +14,7 @@ // Enable auto import of Git repositories "git.openRepositoryInParentFolders": "always", // Disable SonarLint product telemetry in ITs - "sonarlint.ls.vmargs": " -Dsonarlint.telemetry.disabled=true ", + "sonarlint.ls.vmargs": " -Dsonarlint.telemetry.disabled=true -Dsonarlint.monitoring.disabled=true ", "sonarlint.output.showAnalyzerLogs": true, "sonarlint.output.showVerboseLogs": true } diff --git a/scripts/dependencies.json b/scripts/dependencies.json index 532f38adf..830961eda 100644 --- a/scripts/dependencies.json +++ b/scripts/dependencies.json @@ -2,7 +2,7 @@ { "groupId": "org.sonarsource.sonarlint.ls", "artifactId": "sonarlint-language-server", - "version": "3.14.1.75775", + "version": "3.15.0.75782", "output": "server/sonarlint-ls.jar" }, { diff --git a/src/lsp/server.ts b/src/lsp/server.ts index fbda1d998..e86f2706a 100644 --- a/src/lsp/server.ts +++ b/src/lsp/server.ts @@ -26,6 +26,7 @@ export function languageServerCommand( if (DEBUG) { params.push('-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8001,quiet=y'); params.push('-Dsonarlint.telemetry.disabled=true'); + params.push('-Dsonarlint.monitoring.disabled=true'); } const vmargs = getSonarLintConfiguration().get('ls.vmargs', ''); parseVMargs(params, vmargs); diff --git a/test/userdir/User/settings.json b/test/userdir/User/settings.json index eb7c190c0..c754a47b9 100644 --- a/test/userdir/User/settings.json +++ b/test/userdir/User/settings.json @@ -12,7 +12,7 @@ "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", // Disable SonarLint product telemetry in ITs - "sonarlint.ls.vmargs": " -Dsonarlint.telemetry.disabled=true ", + "sonarlint.ls.vmargs": " -Dsonarlint.telemetry.disabled=true -Dsonarlint.monitoring.disabled=true ", // Enable auto import of Git repositories "git.openRepositoryInParentFolders": "always", "sonarlint.output.showAnalyzerLogs": true,