Show selected perforce stream somewhere in the status bar
Currently, I work on a streams environment with many task branches. It becomes very hard to track which stream I'm on and I find out that sometimes I forget to switch to a different stream before editing some files only to realise later and then revert the changes in the wrong stream and move it over to the expected stream. It would really help if the selected stream would be clearly seen in the status so that the scope for making mistakes is much lower.
Describe the solution you'd like In the bottom status bar, perhaps next to the P4 icon, maybe it could show
- p4 client name (if in a non stream environment)
- p4 stream name (if in a stream environment) - p4 switch -l (command to get list of streams with selected stream "*" indicating selected stream)
Describe alternatives you've considered No easy alternatives in the vscode GUI, I just type "p4 switch -l" frequently to check which stream I'm on.
Additional context A p4 switch is particularly hard to catch since the stream change happens in the same workspace. So the directory does not change, its contents change when a stream is switched. On top of that I have automation that switches streams depending on certain conditions and since I'm not explicitly running the p4 switch command myself, it makes it even harder to figure out which stream is selected.
Hi, thanks for the suggestion. I'm not very familiar with streams but it seems like a good idea. The challenge would be when to re-run the command to get the current stream, since you're not using the extension to switch stream we would have to check regularly to see if it has changed. As per other issues I haven't had much time to spend on the extension lately but would be happy for anyone to try to implement it or otherwise I might find some time to look into it more.