diff --git a/Extension/src/LanguageServer/extension.ts b/Extension/src/LanguageServer/extension.ts index 1dd3746081..9659621e71 100644 --- a/Extension/src/LanguageServer/extension.ts +++ b/Extension/src/LanguageServer/extension.ts @@ -603,15 +603,24 @@ async function installVsix(vsixLocation: string): Promise { } async function suggestInsidersChannel(): Promise { + if (util.isCodespaces()) { + // Do not prompt users of Codespaces to join Insiders. + return; + } + const suggestInsiders: PersistentState = new PersistentState("CPP.suggestInsiders", true); if (!suggestInsiders.Value) { return; } - if (util.isCodespaces()) { - // Do not prompt users of Codespaces to join Insiders. + + const suggestInsidersCount: PersistentState = new PersistentState("CPP.suggestInsidersCount", 0); + + if (suggestInsidersCount.Value < 10) { + suggestInsidersCount.Value = suggestInsidersCount.Value + 1; return; } + let buildInfo: BuildInfo | undefined; try { buildInfo = await getTargetBuildInfo("Insiders", false);