We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7a569 commit 9075747Copy full SHA for 9075747
src/vs/workbench/contrib/chat/browser/codeBlockPart.ts
@@ -358,6 +358,7 @@ export class SimpleCodeBlockPart extends BaseCodeBlockPart<ISimpleCodeBlockData>
358
this._uri = URI.from({ scheme: Schemas.vscodeChatCodeBlock, path: generateUuid() });
359
this.textModel = textModelService.createModelReference(this._uri).then(ref => {
360
this.editor.setModel(ref.object.textEditorModel);
361
+ this._register(ref);
362
return ref.object.textEditorModel;
363
});
364
0 commit comments