Skip to content

Commit 7665e11

Browse files
Set context flag for when C++ language server is activated (#14382)
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 7665e11

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
@@ -275,6 +275,7 @@ export async function activate(): Promise<void> {
275275
}
276276

277277
await registerRelatedFilesProvider();
278+
await vscode.commands.executeCommand('setContext', 'cpptools.languageServerActivated', true);
278279
}
279280

280281
export function updateLanguageConfigurations(): void {

0 commit comments

Comments
 (0)