query results filtering and sorting (#14833)

* query results filtering and sorting (#14589)

* enable filter

* attach button style

* add hybrid data provider

* make filter and sort work

* fix editor switch issue

* configuration

* fix sort and filter

* add more specific selector

* fix hidden items issue

* update text

* revert text change

* fix copy results issue

* put feature behind preview flag

* comments

* fix tslint error
This commit is contained in:
Alan Ren
2021-03-23 11:30:41 -07:00
committed by GitHub
parent 5c67f3dbed
commit 6c54059f89
22 changed files with 554 additions and 132 deletions

View File

@@ -36,7 +36,7 @@ export interface IView {
readonly element: HTMLElement;
readonly minimumSize: number;
readonly maximumSize: number;
onDidInsert?(): void;
onDidInsert?(): Promise<void>;
onDidRemove?(): void;
}
@@ -276,10 +276,10 @@ export class ScrollableView extends Disposable {
this.updateItemInDOM(item, index, false);
item.onDidRemoveDisposable?.dispose();
item.onDidInsertDisposable = DOM.scheduleAtNextAnimationFrame(() => {
item.onDidInsertDisposable = DOM.scheduleAtNextAnimationFrame(async () => {
// we don't trust the items to be performant so don't interrupt our operations
if (item.view.onDidInsert) {
item.view.onDidInsert();
await item.view.onDidInsert();
}
item.view.layout(item.size, this.width);
});