mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Adopt StorageScope.Application
(#153297)
Adopt `StorageScope.Application` (#152679)
This commit is contained in:
parent
691bcec4a5
commit
1df4b3ceb8
|
@ -33,7 +33,7 @@ class IntegrityStorage {
|
|||
}
|
||||
|
||||
private _read(): IStorageData | null {
|
||||
const jsonValue = this.storageService.get(IntegrityStorage.KEY, StorageScope.PROFILE);
|
||||
const jsonValue = this.storageService.get(IntegrityStorage.KEY, StorageScope.APPLICATION);
|
||||
if (!jsonValue) {
|
||||
return null;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ class IntegrityStorage {
|
|||
|
||||
set(data: IStorageData | null): void {
|
||||
this.value = data;
|
||||
this.storageService.store(IntegrityStorage.KEY, JSON.stringify(this.value), StorageScope.PROFILE, StorageTarget.MACHINE);
|
||||
this.storageService.store(IntegrityStorage.KEY, JSON.stringify(this.value), StorageScope.APPLICATION, StorageTarget.MACHINE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue