Skip to content

Commit db01f71

Browse files
committed
hide outputs if it is transient.
1 parent 402092d commit db01f71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vs/workbench/contrib/notebook/browser/diff/cellComponents.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ abstract class AbstractCellRenderer extends Disposable {
316316
this._register(this._metadataHeader);
317317
this._metadataHeader.buildHeader();
318318

319+
if (this.notebookEditor.textModel?.transientOptions.transientOutputs) {
320+
this._layoutInfo.outputHeight = 0;
321+
this._layoutInfo.outputStatusHeight = 0;
322+
this.layout({});
323+
return;
324+
}
325+
319326
this._outputHeaderContainer = DOM.append(this._diffEditorContainer, DOM.$('.output-header-container'));
320327
this._outputInfoContainer = DOM.append(this._diffEditorContainer, DOM.$('.output-info-container'));
321328

0 commit comments

Comments
 (0)