Skip to content

Commit 5b2dd9b

Browse files
committed
Set context flag for when C++ language server is activated
The primary purpose of this is for this flag to be consumed by the C++ devtools extensions. This way the C++ specific Copilot tools will only appear in tools list and register when the C++ language server is actually activated.
1 parent 25b76ba commit 5b2dd9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export async function activate(): Promise<void> {
169169
}
170170
}
171171

172+
await vscode.commands.executeCommand('setContext', 'cpptools.languageServerActivated', true);
172173
clients = new ClientCollection();
173174
ui = getUI();
174175

0 commit comments

Comments
 (0)