提交 1a81711a 编写于 作者: M Matt Bierner

Add reopen with to editor title menu

Fixes #89604
上级 672bc17e
...@@ -40,7 +40,7 @@ CommandsRegistry.registerCommand('_workbench.openWith', (accessor: ServicesAcces ...@@ -40,7 +40,7 @@ CommandsRegistry.registerCommand('_workbench.openWith', (accessor: ServicesAcces
// #region Reopen With // #region Reopen With
const REOPEN_WITH_COMMAND_ID = 'reOpenWith'; const REOPEN_WITH_COMMAND_ID = 'reOpenWith';
const REOPEN_WITH_TITLE = { value: nls.localize('reopenWith.title', 'Reopen With'), original: 'Reopen With' }; const REOPEN_WITH_TITLE = { value: nls.localize('reopenWith.title', 'Reopen With...'), original: 'Reopen With' };
KeybindingsRegistry.registerCommandAndKeybindingRule({ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: REOPEN_WITH_COMMAND_ID, id: REOPEN_WITH_COMMAND_ID,
...@@ -83,6 +83,17 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, { ...@@ -83,6 +83,17 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
when: CONTEXT_HAS_CUSTOM_EDITORS, when: CONTEXT_HAS_CUSTOM_EDITORS,
}); });
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
command: {
id: REOPEN_WITH_COMMAND_ID,
title: REOPEN_WITH_TITLE,
category: viewCategory,
},
group: '3_open',
order: 20,
when: CONTEXT_HAS_CUSTOM_EDITORS,
});
// #endregion // #endregion
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册