Skip to content

Commit 3f4d906

Browse files
committed
using a getter instead of a standard function to get the expansion state
1 parent df8ab8a commit 3f4d906

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ export class InteractiveEditorController implements IEditorContribution {
556556
this._zone.widget.updateStatus('');
557557
this._zone.widget.updateMarkdownMessage(renderedMarkdown.element);
558558
this._zone.widget.updateToolbar(true);
559-
const expansionState = this._activeSession.newlySelected ? (this._activeSession.lastExpansionState ?? this._zone.widget.expansionState()) : this._zone.widget.expansionState();
559+
const expansionState = this._activeSession.newlySelected ? (this._activeSession.lastExpansionState ?? this._zone.widget.expansionState) : this._zone.widget.expansionState;
560560
this._activeSession.newlySelected = false;
561561
this._activeSession.lastExpansionState = expansionState;
562562
this._zone.widget.updateMarkdownMessageExpansionState(expansionState);

src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export class InteractiveEditorWidget {
433433
this._onDidChangeHeight.fire();
434434
}
435435

436-
expansionState() {
436+
get expansionState(): ExpansionState {
437437
return this._expansionState;
438438
}
439439

0 commit comments

Comments
 (0)