-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning not being hidden on change to a non-protected branch #15
Comments
Hm, still works fine for me on 1.61.0. |
@teledemic Oh, ok that’s odd. I’ll do some more digging tomorrow. |
Still happening today... not 100% of the time but it is happening most of the time: vscode-branch-warning-issue15.mp4Even if I switch from master to another protected branch - rc - the message still reads 'WARNING: branch is master' I'm running: |
I finally had a chance to do a bit of debugging (with the caveat that this is my first time attempting to debug a VSC extension!) and - as far as I can see - the problem appears to be that the I couldn't quite figure out why this should be - but I then spotted that someone logged this issue which seemed to be closely related... So I did a bit more digging and discovered that the v1.61 release of VSC introduced a new multi-platform file watcher - and it seems to be this that's blocking your extension from seeing changes to If you're still not seeing this issue then I'm guessing it's got to be something os-specific - either to macOS or perhaps specific to the new 'Apple Silicon' hardware? I'll give it a try on my old Intel-processor mac at some point just to see what happens on that. |
Same problem here with a new Apple Silicon Hardware. With my old Intel macbook was working perfectly. |
Thanks folks - sounds like it may be worth opening an issue on vscode that the new file watcher has a bug on M1 chips? |
@josegutierro Ah OK interesting; I haven't managed to test it myself on my old Intel Mac yet as I haven't done any dev work on that for ages so naturally I need to spend a crazy amount of time trying to persuade it to get the command line developer tools running again so that I can actually use git... sigh @teledemic Yeah clearly not your issue and so needs to be logged on the VSC GH (though might be worth keeping this issue open fpr now for the benefit of others) - is that something you're willing to do or would you like me to have a crack at it? |
Ok so many, many hours of updates later and... I'm back up and running with Git and VSC on my old Intel MacBook Air - and I'm still getting this issue. And, as with my M1 Mac, enabling the 'legacy' file watcher makes it work fine. @josegutierro perhaps it's down to the file system used? It's AFPS (Encrypted) on my Intel Mac. I'll need to check what my M1 Mac is using tomorrow. |
Hello @moloko, I'm not able to get my old Intel Macbook to check the file system, but as far I remember it was working fine... Btw, my M1 Mac file system is APFS (Encrypted) |
still an issue in VSC v1.62 |
@teledemic just in case you didn't spot this:
If I can find some time over the coming weeks I'll try and give this a go |
Thx! |
I have experienced the same issue on a MacBook Pro (15-inch, 2016) (Intel processor) OS: macOS Big Sur 11.6
Screen.Recording.2021-11-26.at.12.21.28.mov |
That setting did work at one point but stopped working for me a couple of weeeks (??) ago. Hopefully PR #17 will fix this |
add handler for file create/add events
no problem @teledemic glad I was able to help out |
It works! Thank you! Screen.Recording.2021-12-01.at.8.42.07.mov |
In the screenshot below I have switched from master to a different branch (one that is not listed in
branchwarnings.protectedBranches
) but the status bar warning is not updating.This was working fine for me as recently as last week - I think this started happening following update to VSC v1.61.0
The text was updated successfully, but these errors were encountered: