Skip to content

Commit 019e9fb

Browse files
authored
Avoid resetting diff template data if disposed (microsoft#226373)
Fix leaking disposable store
1 parent f7cc48c commit 019e9fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class DiffEditorItemTemplate extends Disposable implements IPooledObject<
179179
}
180180
}
181181

182-
private readonly _dataStore = new DisposableStore();
182+
private readonly _dataStore = this._register(new DisposableStore());
183183

184184
private _data: TemplateData | undefined;
185185

0 commit comments

Comments
 (0)