files - always have "Revert File" enabled

"Revert File" can be used to force load a file from disk and as such is useful in any context.
This commit is contained in:
Benjamin Pasero 2019-01-25 18:17:09 +01:00
parent d1d7b244e5
commit 5ac435e50c

View file

@ -596,8 +596,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
group: '6_close', group: '6_close',
command: { command: {
id: REVERT_FILE_COMMAND_ID, id: REVERT_FILE_COMMAND_ID,
title: nls.localize({ key: 'miRevert', comment: ['&& denotes a mnemonic'] }, "Re&&vert File"), title: nls.localize({ key: 'miRevert', comment: ['&& denotes a mnemonic'] }, "Re&&vert File")
precondition: DirtyEditorContext
}, },
order: 1 order: 1
}); });