Return undefined on tree refresh cancellation

Fixes #129019
This commit is contained in:
Alex Ross
2021-08-16 13:18:42 +02:00
parent 12ce16af9c
commit 13d8a09ec8
6 changed files with 49 additions and 42 deletions

View File

@@ -1260,7 +1260,7 @@ export interface ExtHostDocumentsAndEditorsShape {
}
export interface ExtHostTreeViewsShape {
$getChildren(treeViewId: string, treeItemHandle?: string): Promise<ITreeItem[]>;
$getChildren(treeViewId: string, treeItemHandle?: string): Promise<ITreeItem[] | undefined>;
$onDrop(treeViewId: string, treeDataTransfer: TreeDataTransferDTO, newParentTreeItemHandle: string): Promise<void>;
$setExpanded(treeViewId: string, treeItemHandle: string, expanded: boolean): void;
$setSelection(treeViewId: string, treeItemHandles: string[]): void;