We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b94fde commit 4f03cfdCopy full SHA for 4f03cfd
Extension/src/main.ts
@@ -393,7 +393,7 @@ async function postInstall(info: PlatformInformation): Promise<void> {
393
}
394
395
async function finalizeExtensionActivation(): Promise<void> {
396
- const settings: CppSettings = new CppSettings(vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders[0].uri : undefined);
+ const settings: CppSettings = new CppSettings((vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 0) ? vscode.workspace.workspaceFolders[0]?.uri : undefined);
397
if (settings.intelliSenseEngine === "Disabled") {
398
languageServiceDisabled = true;
399
getTemporaryCommandRegistrarInstance().disableLanguageServer();
0 commit comments