Skip to content

Commit

Permalink
hide outputs if it is transient.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Sep 11, 2020
1 parent 402092d commit db01f71
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,13 @@ abstract class AbstractCellRenderer extends Disposable {
this._register(this._metadataHeader);
this._metadataHeader.buildHeader();

if (this.notebookEditor.textModel?.transientOptions.transientOutputs) {
this._layoutInfo.outputHeight = 0;
this._layoutInfo.outputStatusHeight = 0;
this.layout({});
return;
}

this._outputHeaderContainer = DOM.append(this._diffEditorContainer, DOM.$('.output-header-container'));
this._outputInfoContainer = DOM.append(this._diffEditorContainer, DOM.$('.output-info-container'));

Expand Down

0 comments on commit db01f71

Please sign in to comment.