Skip to content

Commit

Permalink
fix(vscode): suppress UI error notifications for language client erro…
Browse files Browse the repository at this point in the history
…rs; log them in the output channel instead
  • Loading branch information
d-biehl committed Jan 14, 2025
1 parent 4690071 commit 420a8a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vscode-client/extension/languageclientsmanger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,11 @@ export class LanguageClientsManager {
return false;
},
errorHandler: {
error(_error: Error, _message: Message | undefined, _count: number | undefined): ErrorHandlerResult {
error(error: Error, message: Message | undefined, _count: number | undefined): ErrorHandlerResult {
outputChannel.appendLine(`language server error: ${error} (${message})`);
return {
action: ErrorAction.Continue,
handled: true,
};
},

Expand Down

0 comments on commit 420a8a7

Please sign in to comment.