We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f3b2e5 commit e097cf1Copy full SHA for e097cf1
1 file changed
src/vs/platform/userDataSync/common/globalStateSync.ts
@@ -237,7 +237,7 @@ export class GlobalStateSynchroniser extends AbstractSynchroniser implements IUs
237
}
238
239
private format(globalState: IGlobalState): string {
240
- const storageKeys = Object.keys(globalState.storage).sort();
+ const storageKeys = globalState.storage ? Object.keys(globalState.storage).sort() : [];
241
const storage: IStringDictionary<IStorageValue> = {};
242
storageKeys.forEach(key => storage[key] = globalState.storage[key]);
243
globalState.storage = storage;
0 commit comments