Skip to content

Commit 420a8a7

Browse files
committed
fix(vscode): suppress UI error notifications for language client errors; log them in the output channel instead
1 parent 4690071 commit 420a8a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vscode-client/extension/languageclientsmanger.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,11 @@ export class LanguageClientsManager {
577577
return false;
578578
},
579579
errorHandler: {
580-
error(_error: Error, _message: Message | undefined, _count: number | undefined): ErrorHandlerResult {
580+
error(error: Error, message: Message | undefined, _count: number | undefined): ErrorHandlerResult {
581+
outputChannel.appendLine(`language server error: ${error} (${message})`);
581582
return {
582583
action: ErrorAction.Continue,
584+
handled: true,
583585
};
584586
},
585587

0 commit comments

Comments
 (0)