VS Code Bitbucket Plugin - See pull requests associated with commits | Create/open pull requests in Bitbucket | Open source code line/selection in Bitbucket
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Bitbucket Spectacle plugin adds a new view to the left nav which displays the commit history of the:
Active file and
Selected lines of the active file in a tree view.
From this view you can:
Expand tree view to see the pull request(s) in which the change was reviewed.
Open the pull request in Bitbucket by clicking the "Show in Bitbucket" button.
Click on the "Show diff" button to compare each commit with the previous revision.
Create pull request from VS Code
This done by clicking the "Create pull request" action button on the "Bitbucket Spectacle" view title.
Bitbucket Links
Open active file(with lines highlighted) in Bitbucket
This action can be triggered from the following places:
From within the editor
From editor title
From explorer context menu
Setting it up (you only have to do this once)!
Open the settings and search for "bitbucket spectacle"
Set the following in the settings.
Username - Your Bitbucket username
App password - Easiest way to authenticate yourself to make API calls to Bitbucket is to generate an app password. Go to https://bitbucket.org/account/user/{username}/app-passwords to create one.
(You will be asked to choose capabilities for the password you are creating. The plugin only needs "pull requests - read" capability.)