Closed f1ames closed 11 months ago
One suggestion is to add a git-branch monitor to the .git/HEAD file? Branch changes update the content here and we could re-validate when changes are detected. Monitoring just a single file should also be quite performant.
This is a recent regression introduced in https://github.com/kubeshop/vscode-monokle/pull/62. As mentioned there:
So it worked before due to global filewatcher, and now with dedicated file change events it doesn't (as branch switch is external trigger). Since the above PR brought performance improvements, my first take on this would be having dedicated mechanism which can detect git branch switches (e.g. watcher on
.git
dir).