Skip to content

Commit 9075747

Browse files
committed
Register ref
1 parent bd7a569 commit 9075747

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/chat/browser/codeBlockPart.ts

+1
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ export class SimpleCodeBlockPart extends BaseCodeBlockPart<ISimpleCodeBlockData>
358358
this._uri = URI.from({ scheme: Schemas.vscodeChatCodeBlock, path: generateUuid() });
359359
this.textModel = textModelService.createModelReference(this._uri).then(ref => {
360360
this.editor.setModel(ref.object.textEditorModel);
361+
this._register(ref);
361362
return ref.object.textEditorModel;
362363
});
363364

0 commit comments

Comments
 (0)