How to use the @theia/navigator/lib/browser/navigator-contribution.NavigatorContextMenu.COMPARE function in @theia/navigator

To help you get started, we’ve selected a few @theia/navigator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipse-theia / theia / packages / git / src / browser / diff / git-diff-contribution.ts View on Github external
registerMenus(menus: MenuModelRegistry): void {
        menus.registerMenuAction(NavigatorContextMenu.COMPARE, {
            commandId: GitDiffCommands.OPEN_FILE_DIFF.id
        });
    }