From 86f37c5604eddfcc4741b9afe11c175cd3fa69a1 Mon Sep 17 00:00:00 2001 From: Tim Schulze-Hartung Date: Thu, 25 Apr 2024 09:18:40 +0200 Subject: [PATCH] chore: enable debug logging of cds-lsp --- .../java/com/sap/cap/cds/intellij/lsp/ServerDescriptor.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sap/cap/cds/intellij/lsp/ServerDescriptor.java b/src/main/java/com/sap/cap/cds/intellij/lsp/ServerDescriptor.java index ef0f938..2cd9d83 100644 --- a/src/main/java/com/sap/cap/cds/intellij/lsp/ServerDescriptor.java +++ b/src/main/java/com/sap/cap/cds/intellij/lsp/ServerDescriptor.java @@ -71,7 +71,6 @@ private void handleServerError(int exitValue) { public GeneralCommandLine getCommandLine() throws ExecutionException { return (isDebugCdsLsp() ? getDebugCommandLine() : getDefaultCommandLine()) - .withEnvironment("CDS_LSP_TRACE_COMPONENTS", "*:verbose") // TODO check if this is really needed: // Suppress ANSI escape sequences in cds-compiler output .withEnvironment("NO_COLOR", "1") @@ -91,7 +90,7 @@ private static GeneralCommandLine getDefaultCommandLine() { "node", resolve(RELATIVE_SERVER_PATH), "--stdio" - ); + ).withEnvironment("CDS_LSP_TRACE_COMPONENTS", "*:verbose"); } private static GeneralCommandLine getDebugCommandLine() { @@ -102,7 +101,7 @@ private static GeneralCommandLine getDebugCommandLine() { "node", resolve(RELATIVE_SERVER_PATH), "--stdio" - ); + ).withEnvironment("CDS_LSP_TRACE_COMPONENTS", "*:debug"); } private static String resolve(String relativePath) {