Skip to content

Commit d0ba782

Browse files
committed
Handle multiple activation.
1 parent 8ca1c45 commit d0ba782

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Extension/src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<CppToo
4141
context: { cpptools: '', start: '' }
4242
});
4343

44+
if (util.extensionContext !== undefined) {
45+
return cppTools; // The extension is already activated.
46+
}
47+
4448
util.setExtensionContext(context);
4549
Telemetry.activate();
4650
util.setProgress(0);

0 commit comments

Comments
 (0)