Skip to content

Commit e097cf1

Browse files
committed
microsoft#105622 Probable fix
1 parent 7f3b2e5 commit e097cf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/platform/userDataSync/common/globalStateSync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class GlobalStateSynchroniser extends AbstractSynchroniser implements IUs
237237
}
238238

239239
private format(globalState: IGlobalState): string {
240-
const storageKeys = Object.keys(globalState.storage).sort();
240+
const storageKeys = globalState.storage ? Object.keys(globalState.storage).sort() : [];
241241
const storage: IStringDictionary<IStorageValue> = {};
242242
storageKeys.forEach(key => storage[key] = globalState.storage[key]);
243243
globalState.storage = storage;

0 commit comments

Comments
 (0)