Skip to content

Commit

Permalink
Add reopen with to editor title menu
Browse files Browse the repository at this point in the history
Fixes #89604
  • Loading branch information
mjbvz committed Feb 15, 2020
1 parent 672bc17 commit 1a81711
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/vs/workbench/contrib/customEditor/browser/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CommandsRegistry.registerCommand('_workbench.openWith', (accessor: ServicesAcces
// #region Reopen With

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({
id: REOPEN_WITH_COMMAND_ID,
Expand Down Expand Up @@ -83,6 +83,17 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
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


Expand Down

0 comments on commit 1a81711

Please sign in to comment.