Closed sajalverma17 closed 3 years ago
This bug exists because we use the Selection Changed DTE events, and use them to see if anything selection was changed in solution explorer, and then open a comparison window.
Ideally, we should have used Document DTE events to open a comparison window. That is leads to another bug and I switched to selection changed events. We can not suppress VS from opening the document in regular view and force it to open comparison view when using Document Events. So I ended up with Selection Changed DTE event so a comparison window opens if user click an item in Solution Explorer.
This bug is a drawback of that approach and I may have to find a third approach that fixes both the bugs.
Fixed with #19
Version Information :
Describe the bug Bug apprears when opening a file from Solution Explorer after the "Show diff in solution" filter was successfully applied on in. If user changes the document window in documents pane, and this triggers a change in solution explorer, branch diff window is opened.
To Reproduce Steps to reproduce the behavior:
Expected behavior GitBranchDiffer should only open a branch diff window if they are selecting a node in solution explorer. Any other changes should not result in this