We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1831a4 commit 5912f7cCopy full SHA for 5912f7c
src/extension.ts
@@ -432,11 +432,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
432
433
const languageClients = analyzedProjectDirectories.map(createClient);
434
435
- async function restartLanguageClients(): Promise<void> {
436
- for (const client of languageClients) {
437
- await client.stop();
438
- context.subscriptions.push(client.start());
439
- }
+ function restartLanguageClients() {
+ return Promise.all(languageClients.map((c: LanguageClient) => c.stop().then(() => c.start())));
440
}
441
context.subscriptions.push(vscode.commands.registerCommand('phan.restartLanguageServer', restartLanguageClients));
442
0 commit comments