There was an error while loading. Please reload this page.
1 parent 838429a commit 808e545Copy full SHA for 808e545
1 file changed
src/extension.ts
@@ -19,11 +19,11 @@ export async function activate(context: vscode.ExtensionContext):
19
20
let clangdContext: ClangdContext|null = null;
21
22
- // An empty place holder for the activate command, otherwise we'll get an
23
- // "command is not registered" error.
24
context.subscriptions.push(
25
vscode.commands.registerCommand('clangd.activate', async () => {
26
- // If clangd server is already running, do nothing.
+ if (clangdContext && clangdContext.clientIsStarting()) {
+ return;
+ }
27
if (clangdContext && clangdContext.clientIsRunning()) {
28
return;
29
}
0 commit comments