How to use the @theia/scm/lib/browser/scm-widget.ScmWidget.ContextMenu 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-commands.ts View on Github external
protected doShowMoreToolButtons(event: React.MouseEvent): void {
        const el = (event.target as HTMLElement).parentElement;
        if (el) {
            this.contextMenuRenderer.render(ScmWidget.ContextMenu.PATH, {
                x: el.getBoundingClientRect().left,
                y: el.getBoundingClientRect().top + el.offsetHeight
            });
        }
    }