提交 a20a578c 编写于 作者: I isidor

fixes #39689

上级 895fae9c
......@@ -265,10 +265,11 @@ export class OpenEditorsView extends ViewsViewletPanel {
}
private onListContextMenu(e: IListContextMenuEvent<OpenEditor | IEditorGroup>): void {
const element = e.element;
this.contextMenuService.showContextMenu({
getAnchor: () => e.anchor,
getActions: () => this.actionProvider.getSecondaryActions(e.element),
getActionsContext: () => e.element
getActions: () => this.actionProvider.getSecondaryActions(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.
先完成此消息的编辑!
想要评论请 注册