File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1165,8 +1165,10 @@ export function UpdateInsidersAccess(): void {
1165
1165
}
1166
1166
1167
1167
export async function preReleaseCheck ( ) : Promise < void > {
1168
- // First we need to make sure the user isn't already on a pre-release version.
1169
- if ( util . getCppToolsTargetPopulation ( ) === TargetPopulation . Public ) {
1168
+ const displayedPreReleasePrompt : PersistentState < boolean > = new PersistentState < boolean > ( "CPP.displayedPreReleasePrompt" , false ) ;
1169
+
1170
+ // First we need to make sure the user isn't already on a pre-release version and hasn't dismissed this prompt before.
1171
+ if ( ! displayedPreReleasePrompt . Value && util . getCppToolsTargetPopulation ( ) === TargetPopulation . Public ) {
1170
1172
// Get the info on the latest version from the marketplace to check if there is a pre-release version available.
1171
1173
const response = await fetch ( 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' , {
1172
1174
method : 'POST' ,
@@ -1182,6 +1184,7 @@ export async function preReleaseCheck(): Promise<void> {
1182
1184
1183
1185
// If the user isn't on the pre-release version, but one is available, prompt them to install it.
1184
1186
if ( preReleaseAvailable ) {
1187
+ displayedPreReleasePrompt . Value = true ;
1185
1188
const message : string = localize ( "prerelease.message" , "There is a new pre-release version of the C/C++ extension, would you like to install it?" ) ;
1186
1189
const yes : string = localize ( "yes.button" , "Yes" ) ;
1187
1190
const no : string = localize ( "no.button" , "No" ) ;
You can’t perform that action at this time.
0 commit comments