提交 748f1763 编写于 作者: I isidor

open editors: need to pass an {} when there is no uri to keep the order of arguments

上级 43e1d091
...@@ -298,7 +298,7 @@ export class OpenEditorsView extends ViewsViewletPanel { ...@@ -298,7 +298,7 @@ export class OpenEditorsView extends ViewsViewletPanel {
getAnchor: () => e.anchor, getAnchor: () => e.anchor,
getActions: () => { getActions: () => {
const actions = []; const actions = [];
fillInActions(this.contributedContextMenu, { shouldForwardArgs: true, arg: element instanceof OpenEditor ? element.editorInput.getResource() : undefined }, actions, this.contextMenuService); fillInActions(this.contributedContextMenu, { shouldForwardArgs: true, arg: element instanceof OpenEditor ? element.editorInput.getResource() : {} }, actions, this.contextMenuService);
return TPromise.as(actions); return TPromise.as(actions);
}, },
getActionsContext: () => element instanceof OpenEditor ? { group: element.editorGroup, editor: element.editorInput } : { group: element } getActionsContext: () => element instanceof OpenEditor ? { group: element.editorGroup, editor: element.editorInput } : { group: element }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册