sajalverma17 / GitBranchDiffer

A Visual Studio Extension that displays source files Added/Modified/Renamed between a base branch you choose to diff against, and the current working branch in your Git repo. The diffed files are shown in the Solution Explorer using a Solution Explorer Filter
MIT License
6 stars 1 forks source link

"Go To Definition" navigates to the file's dedicated tab rather than staying within the diff's tab. #42

Open Mac-Olo opened 1 year ago

Mac-Olo commented 1 year ago

Version Information :

Describe the bug Inside a diff's tab, right-clicking a variable or type defined in that file and selecting "Go To Definition" navigates to a new tab of the same file alone rather than staying within the diff's tab.

Expected behavior If possible, the cursor should stay within the diff's tab so unnecessary, diff-less tabs aren't needlessly switched to instead. In contrast, using Find References on a type or variable within a diff tab already works as I'd expect, navigating to elsewhere within the tab if possible, or even to the associated diff tab of that reference's location (if that diff tab happens to already be open, anyway).

sajalverma17 commented 1 year ago

Hi, I reckon that's quite annoying. I'll look for a way to fix this bug.

I've also thought of adding a way to manage these diff-tabs created by the extension, somehow separate them from non-diff tabs for better UX, easier lookup.