Support toolbar in notebook outline pane entries (#207498)

* relocate toggle action, fix toggle verbage, more generic section args

* support toolbar in outline pane entries

* unused imports slipped in with the merge

* css class name fix

* folding action support + css fix

* better typeguard fn
This commit is contained in:
Michael Lively
2024-03-14 10:29:29 -07:00
committed by GitHub
parent e855f5e6a8
commit 88d1e2cbfd
8 changed files with 380 additions and 54 deletions

View File

@@ -177,6 +177,8 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
private readonly _instanceId: string;
public readonly id: string;
private _foldingRanges: FoldingRegions | null = null;
private _onDidFoldingStateChanged = new Emitter<void>();
onDidFoldingStateChanged: Event<void> = this._onDidFoldingStateChanged.event;
private _hiddenRanges: ICellRange[] = [];
private _focused: boolean = true;
@@ -470,6 +472,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
if (updateHiddenAreas || k < this._hiddenRanges.length) {
this._hiddenRanges = newHiddenAreas;
this._onDidFoldingStateChanged.fire();
}
this._viewCells.forEach(cell => {