mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
debt - remove TPromise from ExtHostTree and MainThreadTree
This commit is contained in:
@@ -98,13 +98,13 @@ class TreeViewDataProvider implements ITreeViewDataProvider {
|
||||
if (treeItem && treeItem.children) {
|
||||
return TPromise.as(treeItem.children);
|
||||
}
|
||||
return this._proxy.$getChildren(this.treeViewId, treeItem ? treeItem.handle : void 0)
|
||||
return TPromise.wrap(this._proxy.$getChildren(this.treeViewId, treeItem ? treeItem.handle : void 0)
|
||||
.then(children => {
|
||||
return this.postGetChildren(children);
|
||||
}, err => {
|
||||
this.notificationService.error(err);
|
||||
return [];
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
getItemsToRefresh(itemsToRefreshByHandle: { [treeItemHandle: string]: ITreeItem }): ITreeItem[] {
|
||||
|
||||
Reference in New Issue
Block a user