diff --git a/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts b/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts index be0a96f0d63..9889c3f7fab 100644 --- a/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts +++ b/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts @@ -85,6 +85,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ weight: KeybindingWeight.EditorContrib }); +MenuRegistry.appendMenuItem(MenuId.CommandPalette, { + command: { + id: CommentCommandId.NextRange, + title: nls.localize('comments.nextCommentingRange', "Go to Next Commenting Range"), + category: 'Comments', + }, + when: CommentContextKeys.activeEditorHasCommentingRange +}); + KeybindingsRegistry.registerCommandAndKeybindingRule({ id: CommentCommandId.PreviousRange, handler: async (accessor, args?: { range: IRange; fileComment: boolean }) => { @@ -104,6 +113,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ weight: KeybindingWeight.EditorContrib }); +MenuRegistry.appendMenuItem(MenuId.CommandPalette, { + command: { + id: CommentCommandId.PreviousRange, + title: nls.localize('comments.previousCommentingRange', "Go to Previous Commenting Range"), + category: 'Comments', + }, + when: CommentContextKeys.activeEditorHasCommentingRange +}); + CommandsRegistry.registerCommand({ id: CommentCommandId.ToggleCommenting, handler: (accessor) => {