vscode-restore-git-branch-tabs
vscode-restore-git-branch-tabs copied to clipboard
Use vscode api to detect branch changes instead of setTimeOut
There is a vscode API. You can hook into onDidChange event instead of looping continuously.
https://github.com/microsoft/vscode/blob/be68a4e14c28cc81cdf422739af23123b3c91fd2/extensions/git/src/api/git.d.ts#L106-L107
Related: https://github.com/microsoft/vscode/issues/142313