I discovered the Watermelon VS Code extension yesterday.
What it does is give you the context of a piece of highlighted code by pulling in the comments from the associated pull request. Support for other platforms like JIRA are coming as well. Checkout the repository if you want to see how it all works.
watermelontools
/
wm-extension
🍉 Highlight a piece of code to see its historical context.
Watermelon GitHub Plugin for Visual Studio Code
Watermelon is an open-source integration between GitHub and Visual Studio Code to document code and view Git Blame. Watermelon makes you an expert on any file instantly by running git blame
for you and telling you why a block of code was written that way by someone else.
Features
Watermelon has 2 actions that you can use:
- View Git Blame
- View Pull Requests
Simply click the Watermelon icon on the sidebar. After that you can click any of the 2 different buttons Watermelon has.
View Commit History
Highlight a piece of code, and then click the View Commit History
button. We will run Git Blame for you, and give you a table with the Git commit messages relevant to the piece of code you highlighted.
You may also highlight and right click on the code, you will find the 'View Commit History with…
It’s still early days, but it looks promising as an extension.
Discussion (0)