-
Notifications
You must be signed in to change notification settings - Fork 10
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
Wrong state of editor buttons when staging/unstaging lines of code #2318
Comments
I haven't seen this myself.
We need steps to reproduce this. |
I'm sorry but I really can't reproduce it right now. |
@DanPristupov I found out how to reproduce this. See steps 1-6.
|
I also just confirmed that this also happens the other way around (mark code in the staged file and click on an unstaged file). |
For completeness' sake:
I feel like this last point should be worth getting an additional error pop-up, since you shouldn't be able to discard staged changes from the UI (but apparently git doesn't complain). |
The Stage/discard buttons are sometimes shown when I'm in the "Staged" view, meaning I can't unstage a line of code.
I'm not sure if it happens this way or the other way around (Unstage button visible in "Unstaged" view) or both.
I haven't really tried pressing the buttons in that state, because I obviously don't want to break any of my code or commits.
It's probably simple to reproduce but I haven't managed to do so right now (maybe it only happens while I'm compiling, suggesting a race condition due to max CPU usage).
It usually resolves itself when I click on another file or do something else that causes the editor to reload.
These are the buttons in question:
The text was updated successfully, but these errors were encountered: