We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c3a40b commit 34ee4b8Copy full SHA for 34ee4b8
1 file changed
src/vs/platform/storage/common/storageLegacyService.ts
@@ -122,6 +122,13 @@ export class StorageLegacyService implements IStorageLegacyService {
122
// which is only possible if a id property is provided that we can check on
123
if (types.isNumber(legacyWorkspaceId)) {
124
this.cleanupWorkspaceScope(legacyWorkspaceId);
125
+ } else {
126
+ // ensure that we always store a workspace identifier because this key
127
+ // is used to migrate data out as needed
128
+ const workspaceIdentifier = this.getInteger(StorageLegacyService.WORKSPACE_IDENTIFIER, StorageLegacyScope.WORKSPACE);
129
+ if (!workspaceIdentifier) {
130
+ this.store(StorageLegacyService.WORKSPACE_IDENTIFIER, 42, StorageLegacyScope.WORKSPACE);
131
+ }
132
}
133
134
0 commit comments