Skip to content

Commit

Permalink
Merge pull request #83984 from microsoft/alex/contextmenu-proposal
Browse files Browse the repository at this point in the history
Tweaks to the contextmenu
  • Loading branch information
jrieken authored Nov 5, 2019
2 parents fedfbac + e16bd12 commit 567ae20
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/vs/editor/contrib/gotoSymbol/goToCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,6 @@ registerEditorAction(class PeekDefinitionAction extends DefinitionAction {
primary: KeyMod.Alt | KeyCode.F12,
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.F10 },
weight: KeybindingWeight.EditorContrib
},
menuOpts: {
group: 'navigation',
order: 1.2
}
});
CommandsRegistry.registerCommandAlias('editor.action.previewDeclaration', PeekDefinitionAction.id);
Expand Down Expand Up @@ -506,6 +502,10 @@ registerEditorAction(class GoToImplementationAction extends ImplementationAction
menuId: MenuId.MenubarGoMenu,
group: '4_symbol_nav',
order: 4, title: nls.localize({ key: 'miGotoImplementation', comment: ['&& denotes a mnemonic'] }, "Go to &&Implementation")
},
menuOpts: {
group: 'navigation',
order: 1.45
}
});
}
Expand Down Expand Up @@ -572,13 +572,17 @@ registerEditorAction(class GoToReferencesAction extends ReferencesAction {
muteMessage: false
}, {
id: 'editor.action.goToReferences',
label: nls.localize('goToReferences.label', "Go To References"),
alias: 'Go To References',
label: nls.localize('goToReferences.label', "Go to References"),
alias: 'Go to References',
precondition: ContextKeyExpr.and(
EditorContextKeys.hasReferenceProvider,
PeekContext.notInPeekEditor,
EditorContextKeys.isInEmbeddedEditor.toNegated()
)
),
menuOpts: {
group: 'navigation',
order: 1.45
}
});
}
});
Expand All @@ -603,10 +607,6 @@ registerEditorAction(class PeekReferencesAction extends ReferencesAction {
kbExpr: EditorContextKeys.editorTextFocus,
primary: KeyMod.Shift | KeyCode.F12,
weight: KeybindingWeight.EditorContrib
},
menuOpts: {
group: 'navigation',
order: 1.5
}
});
}
Expand Down

0 comments on commit 567ae20

Please sign in to comment.