Auto update "For Current Branch" tab in sidebar
To improve the current behavior "For Current Branch" tab should auto update itself.
Also refreshing the panels should clear issue and MR cache. Related with this one https://gitlab.com/fatihacet/gitlab-vscode-extension/issues/21
Problem
Rith now the sidebar with "For Current Branch" information needs to be manually refreshed and it will likely show outdated information.
Additionally, the status bar refreshes every 30s, but at the start of the VS Code, the first refresh happens before the extension can access the git repository and the user always sees roughly 25s of "initializing status bar":
Proposal
Both the "For Current Branch" sidebar panel and the status bar are using the same information (pipeline, MR, and issue). I suggest that they'll get automatically updated together. The update is going to be triggered by the following events:
- Repository has been initialized (fixes the initial 25s of delay)
- Branch has been changed
- 30 seconds have passed since the last update (only this is now partially implemented)