提交 0795b09e 编写于 作者: S Sandeep Somavarapu

Udate context key for tree items

上级 2cda0cdb
......@@ -419,7 +419,7 @@ class Menus implements IDisposable {
}
getResourceContextActions(element: ITreeItem): IAction[] {
return this.getActions(MenuId.ViewResource, { key: 'resource', value: element.contextValue }).secondary;
return this.getActions(MenuId.ViewResource, { key: 'item', value: element.contextValue }).secondary;
}
private getActions(menuId: MenuId, context: { key: string, value: string }): { primary: IAction[]; secondary: IAction[]; } {
......@@ -431,7 +431,7 @@ class Menus implements IDisposable {
const primary = [];
const secondary = [];
const result = { primary, secondary };
fillInActions(menu, { shouldForwardArgs: true }, result, g => g === 'inline');
fillInActions(menu, { shouldForwardArgs: true }, result);
menu.dispose();
contextKeyService.dispose();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册