Right click on MR/Issue item should give option to open MR/Issue in browser
Problem to solve
Because integration of MR and Issues in the embedded editor is limited, I would like an option to quickly jump to the MR/Issue in the browser.
Proposal
Currently (see image) a right click on the MR item only gives the option to open the branch. Right click on an issue item does nothing. Here it would be appreciated to have a link to the MR/Issue in the browser as well. Current workaround is to expand the entry, click overview, wait for it to load, then click "Open in GitLab".
This context menu should be also present for MRs in the "For Current Branch" panel.
Further details
- Creating new command should follow the existing Checkout MR command
- See https://gitlab.com/gitlab-org/gitlab-vscode-extension/blob/60aa6bfe9118afe34b78b77d7a9678115b41101f/package.json#L239-242 and full-text search for
gl.checkoutMrBranch - This is the command implementation https://gitlab.com/gitlab-org/gitlab-vscode-extension/blob/60aa6bfe9118afe34b78b77d7a9678115b41101f/src/commands/checkout_mr_branch.ts#L18
- See https://gitlab.com/gitlab-org/gitlab-vscode-extension/blob/60aa6bfe9118afe34b78b77d7a9678115b41101f/package.json#L239-242 and full-text search for
- See how we open GitLab pages in
openers.tshttps://gitlab.com/gitlab-org/gitlab-vscode-extension/blob/60aa6bfe9118afe34b78b77d7a9678115b41101f/src/commands/openers.ts#L128
Links / references
Availability and Testing
Experiment on new e2e spec for Right click on MR/Issue item should give option to open MR/Issue in browser
Edited by Nivetha Prabakaran
