File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/platform/storage/browser Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,10 @@ export class BrowserStorageService extends AbstractStorageService {
66
66
promises . push ( IndexedDBStorageDatabase . create ( { id : this . getId ( StorageScope . WORKSPACE ) } , this . logService ) ) ;
67
67
if ( ! this . userDataProfileService . currentProfile . isDefault ) {
68
68
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.
71
73
72
74
promises . push ( IndexedDBStorageDatabase . create ( { id : this . getId ( StorageScope . GLOBAL ) , broadcastChanges : true } , this . logService ) ) ;
73
75
}
You can’t perform that action at this time.
0 commit comments