Skip to content

Commit 627d7c7

Browse files
committed
register the new Emitter
1 parent 2eaa78c commit 627d7c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/services/textfile/browser/textFileService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export abstract class AbstractTextFileService extends Disposable implements ITex
9191
this.decorationsService.registerDecorationsProvider(new class extends Disposable implements IDecorationsProvider {
9292

9393
readonly label = localize('textFileModelDecorations', "Text File Model Decorations");
94-
private readonly _onForceRefresh = new Emitter<readonly URI[]>();
94+
private readonly _onForceRefresh = this._register(new Emitter<readonly URI[]>());
9595

9696
get onForceRefresh(): Emitter<readonly URI[]> {
9797
return this._onForceRefresh;

src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class FileWorkingCopyManager<S extends IStoredFileWorkingCopyModel, U ext
200200

201201
// File working copy decorations
202202
this.decorationsService.registerDecorationsProvider(new class extends Disposable implements IDecorationsProvider {
203-
private readonly _onForceRefresh = new Emitter<readonly URI[]>();
203+
private readonly _onForceRefresh = this._register(new Emitter<readonly URI[]>());
204204

205205
get onForceRefresh(): Emitter<readonly URI[]> {
206206
return this._onForceRefresh;

0 commit comments

Comments
 (0)