mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
adds a proposed API for keeping scroll position. ref #132068
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user