Skip to content

Commit 18f29bf

Browse files
authored
Fix activation. (#7345)
1 parent f0a8c1a commit 18f29bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ export function activate(activationEventOccurred: boolean): void {
173173
for (let i: number = 0; i < vscode.workspace.workspaceFolders.length; ++i) {
174174
const config: string = path.join(vscode.workspace.workspaceFolders[i].uri.fsPath, ".vscode/c_cpp_properties.json");
175175
if (fs.existsSync(config)) {
176+
cppPropertiesExists = true;
176177
vscode.workspace.openTextDocument(config).then((doc: vscode.TextDocument) => {
177178
vscode.languages.setTextDocumentLanguage(doc, "jsonc");
178-
cppPropertiesExists = true;
179179
});
180180
}
181181
}

0 commit comments

Comments
 (0)