提交 0feb41ee 编写于 作者: S Sandeep Somavarapu

test machine storage is not synced

上级 59bfe65e
......@@ -85,6 +85,7 @@ suite('GlobalStateSync', () => {
test('first time sync - outgoing to server (no state)', async () => {
updateUserStorage('a', 'value1', testClient);
updateMachineStorage('b', 'value1', testClient);
await updateLocale(testClient);
await testObject.sync(await testClient.manifest());
......@@ -216,6 +217,11 @@ suite('GlobalStateSync', () => {
storageService.store2(key, value, StorageScope.GLOBAL, StorageTarget.USER);
}
function updateMachineStorage(key: string, value: string, client: UserDataSyncClient): void {
const storageService = client.instantiationService.get(IStorageService);
storageService.store2(key, value, StorageScope.GLOBAL, StorageTarget.MACHINE);
}
function removeStorage(key: string, client: UserDataSyncClient): void {
const storageService = client.instantiationService.get(IStorageService);
storageService.remove(key, StorageScope.GLOBAL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册