Support title actions in tree explorer

This commit is contained in:
Sandeep Somavarapu
2017-03-24 11:39:57 +01:00
parent 24590b1d9d
commit 7b95329449
9 changed files with 135 additions and 8 deletions

View File

@@ -30,6 +30,7 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
const onError = err => { this.messageService.show(Severity.Error, err); };
this.treeExplorerService.registerTreeExplorerNodeProvider(providerId, {
id: providerId,
provideRootNode: (): TPromise<InternalTreeExplorerNodeContent> => {
return this._proxy.$provideRootNode(providerId).then(rootNode => rootNode, onError);
},