How to use the @theia/scm/lib/browser/scm-widget.ScmWidget.RESOURCE_CONTEXT_MENU function in @theia/scm

To help you get started, we’ve selected a few @theia/scm 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 / git-contribution.ts View on Github external
const registerResourceAction = (group: string, action: MenuAction) => {
            menus.registerMenuAction(ScmWidget.RESOURCE_INLINE_MENU, action);
            menus.registerMenuAction([...ScmWidget.RESOURCE_CONTEXT_MENU, group], action);
        };