run menu: more precise context keys
This commit is contained in:
parent
fa1694c8af
commit
922f866a28
2 changed files with 12 additions and 10 deletions
|
@ -91,16 +91,6 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|||
order: 5
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
||||
submenu: MenuId.MenubarDebugMenu,
|
||||
title: {
|
||||
value: 'Run',
|
||||
original: 'Run',
|
||||
mnemonicTitle: localize({ key: 'mRun', comment: ['&& denotes a mnemonic'] }, "&&Run")
|
||||
},
|
||||
order: 6
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
||||
submenu: MenuId.MenubarTerminalMenu,
|
||||
title: {
|
||||
|
|
|
@ -50,6 +50,7 @@ import { registerColors } from 'vs/workbench/contrib/debug/browser/debugColors';
|
|||
import { DebugEditorContribution } from 'vs/workbench/contrib/debug/browser/debugEditorContribution';
|
||||
import { FileAccess } from 'vs/base/common/network';
|
||||
import * as icons from 'vs/workbench/contrib/debug/browser/debugIcons';
|
||||
import { IsWebContext } from 'vs/platform/contextkey/common/contextkeys';
|
||||
|
||||
const debugCategory = nls.localize('debugCategory', "Debug");
|
||||
registerColors();
|
||||
|
@ -178,6 +179,17 @@ if (isMacintosh) {
|
|||
|
||||
// Debug menu
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
||||
submenu: MenuId.MenubarDebugMenu,
|
||||
title: {
|
||||
value: 'Run',
|
||||
original: 'Run',
|
||||
mnemonicTitle: nls.localize({ key: 'mRun', comment: ['&& denotes a mnemonic'] }, "&&Run")
|
||||
},
|
||||
when: ContextKeyExpr.or(CONTEXT_DEBUGGERS_AVAILABLE, IsWebContext.toNegated()),
|
||||
order: 6
|
||||
});
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
||||
group: '1_debug',
|
||||
command: {
|
||||
|
|
Loading…
Reference in a new issue