Fix an issue causing install failures

This commit is contained in:
Colen Garoutte-Carson 2021-10-14 18:15:25 -07:00
Родитель 0b94fdefe9
Коммит 4f03cfdcbe
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -393,7 +393,7 @@ async function postInstall(info: PlatformInformation): Promise<void> {
}
async function finalizeExtensionActivation(): Promise<void> {
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);
if (settings.intelliSenseEngine === "Disabled") {
languageServiceDisabled = true;
getTemporaryCommandRegistrarInstance().disableLanguageServer();