Update storage promise

A new doStore was added.
This commit is contained in:
Asher
2021-02-09 10:36:39 -06:00
parent 14c96d78ef
commit 89c38d3554
5 changed files with 10 additions and 28 deletions

View File

@@ -66,12 +66,8 @@ export class MainThreadStorage implements MainThreadStorageShape {
let jsonValue: string;
try {
jsonValue = JSON.stringify(value);
<<<<<<< HEAD
await this._storageService.store(key, jsonValue, shared ? StorageScope.GLOBAL : StorageScope.WORKSPACE);
=======
// Extension state is synced separately through extensions
this._storageService.store(key, jsonValue, shared ? StorageScope.GLOBAL : StorageScope.WORKSPACE, StorageTarget.MACHINE);
>>>>>>> e4a830e9b7ca039c7c70697786d29f5b6679d775
await this._storageService.store(key, jsonValue, shared ? StorageScope.GLOBAL : StorageScope.WORKSPACE, StorageTarget.MACHINE);
} catch (err) {
return Promise.reject(err);
}