We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
console.log
1 parent 04f5054 commit b6d92aaCopy full SHA for b6d92aa
apps/lsp/src/logging.ts
@@ -149,6 +149,13 @@ export class Logger extends Disposable implements ILogger {
149
break;
150
}
151
} else {
152
+ // Note that by default, languageserver redirects `console.log` to the
153
+ // client. However this is only the case with StdIo connections:
154
+ // https://github.com/microsoft/vscode-languageserver-node/blob/df56e720/server/src/node/main.ts#L262-L264
155
+ // While we currently only use StdIo to connect the LSP, and so the branch
156
+ // above to explicitly log via our connection object is not strictly
157
+ // necessary, it's still better to use our own logger abstraction that we
158
+ // are in control of.
159
this._logFn(value);
160
161
0 commit comments