nikita-rudenko / back-n-forth

VSCode extension that adds Go Back/Forward buttons ↔️
https://marketplace.visualstudio.com/items?itemName=nick-rudenko.back-n-forth
MIT License
17 stars 1 forks source link

when using editor in split mode, back moves back in the "wrong" editor pane #17

Open Edouard59 opened 3 years ago

Edouard59 commented 3 years ago

Configuring the editor so that the same file is opened in both panes of the editor in horizontal split view mode (so the editor shows two panes, and both display a different section of the same file). When doing a "ctrl+click" on a function in the top pane of the editor, it then opens the file defining this function in the top pane and shows that function one navigated to. Then when using the "back" arrow of this extension to go back to the initial place, instead of moving back to the initial place in the file in the top pane, it moves back to it in the file in the bottom pane, which is not the expected behavior. Note: the issue also occurs when trying it from the bottom pane or in any other split view mode.

See video:

https://user-images.githubusercontent.com/68538605/137089655-ff0fd9aa-c339-455f-9b5c-61befe9c4b96.mp4

.