adds a proposed API for keeping scroll position. ref #132068

This commit is contained in:
Tyler Leonhardt
2021-09-01 11:25:05 -07:00
parent c3f63dc2bb
commit ab8955c820
2 changed files with 16 additions and 1 deletions

View File

@@ -516,6 +516,7 @@ export function createExtHostQuickOpen(mainContext: IMainContext, workspace: IEx
private _matchOnDescription = true;
private _matchOnDetail = true;
private _sortByLabel = true;
private _keepScrollPosition = false;
private _activeItems: T[] = [];
private readonly _onDidChangeActiveEmitter = new Emitter<T[]>();
private _selectedItems: T[] = [];
@@ -602,6 +603,15 @@ export function createExtHostQuickOpen(mainContext: IMainContext, workspace: IEx
this.update({ sortByLabel });
}
get keepScrollPosition() {
return this._keepScrollPosition;
}
set keepScrollPosition(keepScrollPosition: boolean) {
this._keepScrollPosition = keepScrollPosition;
this.update({ keepScrollPosition });
}
get activeItems() {
return this._activeItems;
}