提交 e5bfa66d 编写于 作者: R rebornix

fix #129551.

上级 3f0542a5
......@@ -217,6 +217,11 @@ export class CodeCell extends Disposable {
this._outputContainerRenderer = this.instantiationService.createInstance(CellOutputContainer, notebookEditor, viewCell, templateData, { limit: 500 });
this._outputContainerRenderer.render(editorHeight);
// Need to do this after the intial renderOutput
if (this.viewCell.metadata.outputCollapsed === undefined && this.viewCell.metadata.outputCollapsed === undefined) {
this.viewUpdateExpanded();
this.viewCell.layoutChange({});
}
this.updateForCollapseState();
}
......@@ -359,6 +364,7 @@ export class CodeCell extends Disposable {
override dispose() {
this.viewCell.detachTextEditor();
this.removeInputCollapsePreview();
this._outputContainerRenderer.dispose();
this._untrustedStatusItem?.dispose();
this.templateData.focusIndicatorLeft.style.height = 'initial';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册