diff options
Diffstat (limited to 'src/vs/platform/storage/electron-main/storageMainService.ts')
-rw-r--r-- | src/vs/platform/storage/electron-main/storageMainService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vs/platform/storage/electron-main/storageMainService.ts b/src/vs/platform/storage/electron-main/storageMainService.ts index e60bcf8b869..b0332ba9687 100644 --- a/src/vs/platform/storage/electron-main/storageMainService.ts +++ b/src/vs/platform/storage/electron-main/storageMainService.ts @@ -189,7 +189,7 @@ export class StorageMainService extends Disposable implements IStorageMainServic profileStorage = this.createProfileStorage(profile); this.mapProfileToStorage.set(profile.id, profileStorage); - profileStorage.onDidChangeStorage(e => this._onDidChangeProfileStorageData.fire({ ...e, storage: profileStorage!, profile })); + this._register(profileStorage.onDidChangeStorage(e => this._onDidChangeProfileStorageData.fire({ ...e, storage: profileStorage!, profile }))); once(profileStorage.onDidCloseStorage)(() => { this.logService.trace(`StorageMainService: closed profile storage (${profile.name})`); |