Skip to content

Commit

Permalink
fix leaking ChatEditorOverlayWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Nov 26, 2024
1 parent a4447a9 commit 6ec1af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/chat/browser/chatEditorOverlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class ChatEditorOverlayController implements IEditorContribution {
@IInstantiationService instaService: IInstantiationService,
) {
const modelObs = observableFromEvent(this._editor.onDidChangeModel, () => this._editor.getModel());
const widget = instaService.createInstance(ChatEditorOverlayWidget, this._editor);
const widget = this._store.add(instaService.createInstance(ChatEditorOverlayWidget, this._editor));

if (this._editor.getOption(EditorOption.inDiffEditor)) {
return;
Expand Down

0 comments on commit 6ec1af9

Please sign in to comment.