@@ -163,7 +163,7 @@ export class ProductContribution implements IWorkbenchContribution {
163
163
return ;
164
164
}
165
165
166
- const lastVersion = parseVersion ( storageService . get ( ProductContribution . KEY , StorageScope . PROFILE , '' ) ) ;
166
+ const lastVersion = parseVersion ( storageService . get ( ProductContribution . KEY , StorageScope . APPLICATION , '' ) ) ;
167
167
const currentVersion = parseVersion ( productService . version ) ;
168
168
const shouldShowReleaseNotes = configurationService . getValue < boolean > ( 'update.showReleaseNotes' ) ;
169
169
const releaseNotesUrl = productService . releaseNotesUrl ;
@@ -186,7 +186,7 @@ export class ProductContribution implements IWorkbenchContribution {
186
186
} ) ;
187
187
}
188
188
189
- storageService . store ( ProductContribution . KEY , productService . version , StorageScope . PROFILE , StorageTarget . MACHINE ) ;
189
+ storageService . store ( ProductContribution . KEY , productService . version , StorageScope . APPLICATION , StorageTarget . MACHINE ) ;
190
190
} ) ;
191
191
}
192
192
}
@@ -224,12 +224,12 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
224
224
*/
225
225
226
226
const currentVersion = this . productService . commit ;
227
- const lastKnownVersion = this . storageService . get ( 'update/lastKnownVersion' , StorageScope . PROFILE ) ;
227
+ const lastKnownVersion = this . storageService . get ( 'update/lastKnownVersion' , StorageScope . APPLICATION ) ;
228
228
229
229
// if current version != stored version, clear both fields
230
230
if ( currentVersion !== lastKnownVersion ) {
231
- this . storageService . remove ( 'update/lastKnownVersion' , StorageScope . PROFILE ) ;
232
- this . storageService . remove ( 'update/updateNotificationTime' , StorageScope . PROFILE ) ;
231
+ this . storageService . remove ( 'update/lastKnownVersion' , StorageScope . APPLICATION ) ;
232
+ this . storageService . remove ( 'update/updateNotificationTime' , StorageScope . APPLICATION ) ;
233
233
}
234
234
235
235
this . registerGlobalActivityActions ( ) ;
@@ -400,15 +400,15 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
400
400
private shouldShowNotification ( ) : boolean {
401
401
const currentVersion = this . productService . commit ;
402
402
const currentMillis = new Date ( ) . getTime ( ) ;
403
- const lastKnownVersion = this . storageService . get ( 'update/lastKnownVersion' , StorageScope . PROFILE ) ;
403
+ const lastKnownVersion = this . storageService . get ( 'update/lastKnownVersion' , StorageScope . APPLICATION ) ;
404
404
405
405
// if version != stored version, save version and date
406
406
if ( currentVersion !== lastKnownVersion ) {
407
- this . storageService . store ( 'update/lastKnownVersion' , currentVersion ! , StorageScope . PROFILE , StorageTarget . MACHINE ) ;
408
- this . storageService . store ( 'update/updateNotificationTime' , currentMillis , StorageScope . PROFILE , StorageTarget . MACHINE ) ;
407
+ this . storageService . store ( 'update/lastKnownVersion' , currentVersion ! , StorageScope . APPLICATION , StorageTarget . MACHINE ) ;
408
+ this . storageService . store ( 'update/updateNotificationTime' , currentMillis , StorageScope . APPLICATION , StorageTarget . MACHINE ) ;
409
409
}
410
410
411
- const updateNotificationMillis = this . storageService . getNumber ( 'update/updateNotificationTime' , StorageScope . PROFILE , currentMillis ) ;
411
+ const updateNotificationMillis = this . storageService . getNumber ( 'update/updateNotificationTime' , StorageScope . APPLICATION , currentMillis ) ;
412
412
const diffDays = ( currentMillis - updateNotificationMillis ) / ( 1000 * 60 * 60 * 24 ) ;
413
413
414
414
return diffDays > 5 ;
@@ -536,12 +536,12 @@ export class SwitchProductQualityContribution extends Disposable implements IWor
536
536
const userDataSyncStore = userDataSyncStoreManagementService . userDataSyncStore ;
537
537
let userDataSyncStoreType : UserDataSyncStoreType | undefined ;
538
538
if ( userDataSyncStore && isSwitchingToInsiders && userDataSyncEnablementService . isEnabled ( )
539
- && ! storageService . getBoolean ( selectSettingsSyncServiceDialogShownKey , StorageScope . PROFILE , false ) ) {
539
+ && ! storageService . getBoolean ( selectSettingsSyncServiceDialogShownKey , StorageScope . APPLICATION , false ) ) {
540
540
userDataSyncStoreType = await this . selectSettingsSyncService ( dialogService ) ;
541
541
if ( ! userDataSyncStoreType ) {
542
542
return ;
543
543
}
544
- storageService . store ( selectSettingsSyncServiceDialogShownKey , true , StorageScope . PROFILE , StorageTarget . USER ) ;
544
+ storageService . store ( selectSettingsSyncServiceDialogShownKey , true , StorageScope . APPLICATION , StorageTarget . USER ) ;
545
545
if ( userDataSyncStoreType === 'stable' ) {
546
546
// Update the stable service type in the current window, so that it uses stable service after switched to insiders version (after reload).
547
547
await userDataSyncStoreManagementService . switch ( userDataSyncStoreType ) ;
@@ -576,7 +576,7 @@ export class SwitchProductQualityContribution extends Disposable implements IWor
576
576
} else {
577
577
// Reset
578
578
if ( userDataSyncStoreType ) {
579
- storageService . remove ( selectSettingsSyncServiceDialogShownKey , StorageScope . PROFILE ) ;
579
+ storageService . remove ( selectSettingsSyncServiceDialogShownKey , StorageScope . APPLICATION ) ;
580
580
}
581
581
}
582
582
} catch ( error ) {
0 commit comments