This commit is contained in:
Pine Wu
2016-10-19 11:10:38 -07:00
parent f19446e639
commit ec7f0779d6
5 changed files with 6 additions and 6 deletions

View File

@@ -267,7 +267,7 @@ export abstract class ExtHostEditorsShape {
export abstract class ExtHostTreeExplorersShape {
$provideRootNode(providerId: string): TPromise<InternalTreeExplorerNode> { throw ni(); };
$resolveChildren(providerId: string, node: InternalTreeExplorerNode): TPromise<InternalTreeExplorerNode[]> { throw ni(); }
$resolveCommand(providerId: string, node: InternalTreeExplorerNode): TPromise<void> { throw ni(); }
$executeCommand(providerId: string, node: InternalTreeExplorerNode): TPromise<void> { throw ni(); }
}
export abstract class ExtHostExtensionServiceShape {

View File

@@ -80,7 +80,7 @@ export class ExtHostTreeExplorers extends ExtHostTreeExplorersShape {
});
}
$resolveCommand(providerId: string, mainThreadNode: InternalTreeExplorerNode): TPromise<void> {
$executeCommand(providerId: string, mainThreadNode: InternalTreeExplorerNode): TPromise<void> {
const provider = this._treeExplorerNodeProviders[providerId];
if (!provider) {
throw new Error(`no TreeExplorerNodeProvider registered with id '${providerId}'`);

View File

@@ -30,8 +30,8 @@ export class MainThreadTreeExplorers extends MainThreadTreeExplorersShape {
resolveChildren: (node: InternalTreeExplorerNode): TPromise<InternalTreeExplorerNode[]> => {
return this._proxy.$resolveChildren(providerId, node);
},
resolveCommand: (node: InternalTreeExplorerNode): TPromise<void> => {
return this._proxy.$resolveCommand(providerId, node);
executeCommand: (node: InternalTreeExplorerNode): TPromise<void> => {
return this._proxy.$executeCommand(providerId, node);
}
});
}