From e9f7b7180348158a3a1c4eaa5269aadb7ccd2537 Mon Sep 17 00:00:00 2001 From: Bronley Plumb Date: Wed, 15 May 2024 15:39:13 -0400 Subject: [PATCH 1/2] Disable color for logger in lsp mode --- src/LanguageServer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LanguageServer.ts b/src/LanguageServer.ts index 2a08af32b..4ad6c14df 100644 --- a/src/LanguageServer.ts +++ b/src/LanguageServer.ts @@ -111,6 +111,9 @@ export class LanguageServer { void this.sendBusyStatus(status); }); + //disable color for lsp logging + logger.enableColor = false; + //listen to all of the output log events and pipe them into the debug channel in the extension this.loggerSubscription = logger.subscribe((message) => { this.connection.tracer.log(message.argsText); From 081911ded4338cd0c90506df9c85be6257fc1f47 Mon Sep 17 00:00:00 2001 From: Bronley Plumb Date: Wed, 15 May 2024 15:42:03 -0400 Subject: [PATCH 2/2] Disable logger colors when running in LSP mode --- src/LanguageServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LanguageServer.ts b/src/LanguageServer.ts index 4ad6c14df..51f2b1eb3 100644 --- a/src/LanguageServer.ts +++ b/src/LanguageServer.ts @@ -111,7 +111,7 @@ export class LanguageServer { void this.sendBusyStatus(status); }); - //disable color for lsp logging + //disable logger colors when running in LSP mode logger.enableColor = false; //listen to all of the output log events and pipe them into the debug channel in the extension