Skip to content

Commit ee1f284

Browse files
committed
comment
1 parent a4906e2 commit ee1f284

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/platform/storage/browser/storageService.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ export class BrowserStorageService extends AbstractStorageService {
6666
promises.push(IndexedDBStorageDatabase.create({ id: this.getId(StorageScope.WORKSPACE) }, this.logService));
6767
if (!this.userDataProfileService.currentProfile.isDefault) {
6868

69-
// Create global storage only if the current profile is not a
70-
// default profie otherwise we use the application storage
69+
// If we are in default profile, the global storage is
70+
// actually the same as application storage. As such we
71+
// avoid creating the storage library a second time on
72+
// the same DB.
7173

7274
promises.push(IndexedDBStorageDatabase.create({ id: this.getId(StorageScope.GLOBAL), broadcastChanges: true }, this.logService));
7375
}

0 commit comments

Comments
 (0)