mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
async loading children
This commit is contained in:
@@ -28,6 +28,11 @@ export class MainThreadExplorers extends MainThreadExplorersShape {
|
||||
return this._proxy.$provideTreeContent(providerId).then(jsonTree => {
|
||||
return <ITreeNode>JSON.parse(jsonTree);
|
||||
})
|
||||
},
|
||||
resolveChildren: (node: ITreeNode): TPromise<ITreeNode[]> => {
|
||||
return this._proxy.$resolveChildren(providerId, node).then(jsonChildren => {
|
||||
return <ITreeNode[]>JSON.parse(jsonChildren);
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user