Skip to content

Commit 36dd0b8

Browse files
authored
Check extensions.ignoreRecommendations before doing insiders prompting. (#12447)
1 parent 14bd2e7 commit 36dd0b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Extension/src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ export async function activate(context: vscode.ExtensionContext): Promise<CppToo
7070
util.checkDistro(info);
7171
await checkVsixCompatibility();
7272
LanguageServer.UpdateInsidersAccess();
73-
await LanguageServer.preReleaseCheck();
73+
74+
const ignoreRecommendations: boolean | undefined = vscode.workspace.getConfiguration("extensions", null).get<boolean>("ignoreRecommendations");
75+
if (ignoreRecommendations !== true) {
76+
await LanguageServer.preReleaseCheck();
77+
}
7478

7579
const settings: CppSettings = new CppSettings((vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 0) ? vscode.workspace.workspaceFolders[0]?.uri : undefined);
7680
let isOldMacOs: boolean = false;

0 commit comments

Comments
 (0)