Skip to content

Commit

Permalink
chore: enable debug logging of cds-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-sh committed Apr 25, 2024
1 parent a565078 commit 86f37c5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -91,7 +90,7 @@ private static GeneralCommandLine getDefaultCommandLine() {
"node",
resolve(RELATIVE_SERVER_PATH),
"--stdio"
);
).withEnvironment("CDS_LSP_TRACE_COMPONENTS", "*:verbose");
}

private static GeneralCommandLine getDebugCommandLine() {
Expand All @@ -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) {
Expand Down

0 comments on commit 86f37c5

Please sign in to comment.