Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
registerMenus(menus: MenuModelRegistry): void {
super.registerMenus(menus);
menus.registerMenuAction(NavigatorContextMenu.SEARCH, {
commandId: SearchInWorkspaceCommands.FIND_IN_FOLDER.id
});
menus.registerMenuAction(CommonMenus.EDIT_FIND, {
commandId: SearchInWorkspaceCommands.OPEN_SIW_WIDGET.id
});
}
registerMenus(menus: MenuModelRegistry): void {
menus.registerMenuAction(NavigatorContextMenu.SEARCH, {
commandId: GitHistoryCommands.OPEN_FILE_HISTORY.id,
label: GIT_HISTORY_LABEL
});
menus.registerMenuAction(EDITOR_CONTEXT_MENU_GIT, {
commandId: GitHistoryCommands.OPEN_FILE_HISTORY.id,
label: GIT_HISTORY_LABEL
});
super.registerMenus(menus);
}