We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14a12d0 commit 2a3f6d2Copy full SHA for 2a3f6d2
1 file changed
_extension/src/client.ts
@@ -278,7 +278,13 @@ export class Client implements vscode.Disposable {
278
279
this.isInitialized = false;
280
this.outputChannel.appendLine(`Restarting language server...`);
281
- await this.client.restart();
+ try {
282
+ await this.client.restart();
283
+ }
284
+ catch (err) {
285
+ this.outputChannel.appendLine(`Graceful shutdown failed, forcing restart: ${err}`);
286
+ await this.client.start();
287
288
return true;
289
}
290
0 commit comments