File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/vs/workbench/services/storage/browser Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -114,18 +114,20 @@ export class BrowserStorageService extends AbstractStorageService {
114
114
115
115
this . profileStorageDatabase = applicationStorageIndexedDB ;
116
116
this . profileStorage = applicationStorage ;
117
+
118
+ this . profileStorageDisposables . add ( this . profileStorage . onDidChangeStorage ( key => this . emitDidChangeValue ( StorageScope . PROFILE , key ) ) ) ;
117
119
} else {
118
120
const profileStorageIndexedDB = await IndexedDBStorageDatabase . create ( { id : this . getId ( StorageScope . PROFILE ) , broadcastChanges : true } , this . logService ) ;
119
121
120
122
this . profileStorageDatabase = this . profileStorageDisposables . add ( profileStorageIndexedDB ) ;
121
123
this . profileStorage = this . profileStorageDisposables . add ( new Storage ( this . profileStorageDatabase ) ) ;
122
- }
123
124
124
- this . profileStorageDisposables . add ( this . profileStorage . onDidChangeStorage ( key => this . emitDidChangeValue ( StorageScope . PROFILE , key ) ) ) ;
125
+ this . profileStorageDisposables . add ( this . profileStorage . onDidChangeStorage ( key => this . emitDidChangeValue ( StorageScope . PROFILE , key ) ) ) ;
125
126
126
- await this . profileStorage . init ( ) ;
127
+ await this . profileStorage . init ( ) ;
127
128
128
- this . updateIsNew ( this . profileStorage ) ;
129
+ this . updateIsNew ( this . profileStorage ) ;
130
+ }
129
131
}
130
132
131
133
private async createWorkspaceStorage ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments