Skip to content

Commit c3215a7

Browse files
authored
Delete entry (instead of replace) when disposing nb cell editor (microsoft#234049)
1 parent 2c42d6a commit c3215a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/chatEdit/notebookChatEditController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class NotebookChatEditorController extends Disposable {
160160
this._register(editor.onDidDispose(() => {
161161
decorator.dispose();
162162
if (decorators.get(modifiedCell) === decorator) {
163-
decorators.set(modifiedCell, decorator);
163+
decorators.delete(modifiedCell);
164164
}
165165
}));
166166
}

0 commit comments

Comments
 (0)