Multi-select in custom tree view (#78625)

Part of #76941

The first argument is now the element that the command is executed on. The second argurment is an array of the other selected items
This commit is contained in:
Alex Ross
2019-08-15 11:15:31 +02:00
committed by GitHub
parent 7c53175eef
commit cdea3dcf3b
6 changed files with 67 additions and 23 deletions

View File

@@ -242,7 +242,7 @@ export interface MainThreadTextEditorsShape extends IDisposable {
}
export interface MainThreadTreeViewsShape extends IDisposable {
$registerTreeViewDataProvider(treeViewId: string, options: { showCollapseAll: boolean }): void;
$registerTreeViewDataProvider(treeViewId: string, options: { showCollapseAll: boolean, canSelectMany: boolean }): void;
$refresh(treeViewId: string, itemsToRefresh?: { [treeItemHandle: string]: ITreeItem }): Promise<void>;
$reveal(treeViewId: string, treeItem: ITreeItem, parentChain: ITreeItem[], options: IRevealOptions): Promise<void>;
$setMessage(treeViewId: string, message: string): void;