File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -603,15 +603,24 @@ async function installVsix(vsixLocation: string): Promise<void> {
603
603
}
604
604
605
605
async function suggestInsidersChannel ( ) : Promise < void > {
606
+ if ( util . isCodespaces ( ) ) {
607
+ // Do not prompt users of Codespaces to join Insiders.
608
+ return ;
609
+ }
610
+
606
611
const suggestInsiders : PersistentState < boolean > = new PersistentState < boolean > ( "CPP.suggestInsiders" , true ) ;
607
612
608
613
if ( ! suggestInsiders . Value ) {
609
614
return ;
610
615
}
611
- if ( util . isCodespaces ( ) ) {
612
- // Do not prompt users of Codespaces to join Insiders.
616
+
617
+ const suggestInsidersCount : PersistentState < number > = new PersistentState < number > ( "CPP.suggestInsidersCount" , 0 ) ;
618
+
619
+ if ( suggestInsidersCount . Value < 10 ) {
620
+ suggestInsidersCount . Value = suggestInsidersCount . Value + 1 ;
613
621
return ;
614
622
}
623
+
615
624
let buildInfo : BuildInfo | undefined ;
616
625
try {
617
626
buildInfo = await getTargetBuildInfo ( "Insiders" , false ) ;
You can’t perform that action at this time.
0 commit comments