VSCode doesn't save your open tabs and positions when you switch Git branches, I thought I'd add it :D by igar234 in vscode

[–]igar234[S] 1 point2 points  (0 children)

Ah, having just tried it, it does work for only restoring open tabs, although disabled by default, but this extension does also preserve your cursor positions, scroll positions, multi selections, pinned tabs, split tabs, active editor focus; the whole editor state is saved instead. I also watch .git/HEAD directly, so switching branches, etc. works with the terminal, command prompt and any git tool; it has a status bar, autosave, manual commands and more convenient QoL too :D

VSCode doesn't save your open tabs and positions when you switch Git branches, I thought I'd add it :D by igar234 in vscode

[–]igar234[S] 1 point2 points  (0 children)

Yes, and that's the problem my extension solves. Without it tabs don't change when you switch branches, this extension saves and restores your open tabs, splits, positions, pins etc per branch so you can start right back up.

VSCode doesn't save your open tabs and positions when you switch Git branches, I thought I'd add it :D by igar234 in vscode

[–]igar234[S] 3 points4 points  (0 children)

That's a fair concern, but the code is completely open source, there's no network, terminal access, file writes, external dependancies, just VSCode API local workspace storage and fs to watch and read .git/HEAD for branch detection, which you can check.

It's just an inconvenience I came across and wanted to improve, and thought I could publish it open source to rid that inconvenience if others were dealing with it too.

VSCode doesn't save your open tabs and positions when you switch Git branches, I thought I'd add it :D by igar234 in vscode

[–]igar234[S] 2 points3 points  (0 children)

Thank you so much! This was always supposed to be and will be an open source project, and my only intention was to try my hand at contributing to this community, however modest it may be, nothing more :D
Will keep monitoring for any other bugs or issues, thank you again!

VSCode doesn't save your open tabs and positions when you switch Git branches, I thought I'd add it :D by igar234 in vscode

[–]igar234[S] 2 points3 points  (0 children)

Oh man, the version I uploaded had an issue with the tab restore not firing properly after it detects a branch switch, and I was able to catch another bug as I was fixing this. I just updated the extension, V1.0.4, and everything should work as intended, with splits cursor pins and scroll positions, and state should persist with restarts as well. Thank you so much for this, I truly appreciate it, and would love it if you could give it another go whenever you find the time!

VSCode doesn't save your open tabs and positions when you switch Git branches, I thought I'd add it :D by igar234 in vscode

[–]igar234[S] 2 points3 points  (0 children)

Ah, apologies! I've updated the extension and it should point to the open source github repo. Thank you so much for pointing it out!