Skip to content

Commit

Permalink
Logger nocolor (#1189)
Browse files Browse the repository at this point in the history
* Disable color for logger in lsp mode

* Disable logger colors when running in LSP mode
  • Loading branch information
TwitchBronBron authored May 15, 2024
1 parent 2d77dc6 commit ba42b7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/LanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export class LanguageServer {
void this.sendBusyStatus(status);
});

//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
this.loggerSubscription = logger.subscribe((message) => {
this.connection.tracer.log(message.argsText);
Expand Down

0 comments on commit ba42b7c

Please sign in to comment.