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
SCM repo view: often all entries are selected #113803
Comments
I figured out this seems to happen consistently when an update is applied and then the window reloads/restarts. So somehow that UI state is not preserved when we restart from an update (macOS). Is this state computed long running in an extension or all in workbench? |
State is persisted on vscode/src/vs/workbench/contrib/scm/browser/scmViewService.ts Lines 238 to 248 in 016655c
Restoring the state is tricky since SCM providers come delayed, and the SCM world must have timeouts to consider when no more SCM providers are expected to load. It's filled with heuristics, which might fail in that case. One of those heuristics is: if we go 2 seconds without any providers being loaded, we stop considering any more providers, in order to restore view state:
|
@joaomoreno ah ok, just to know what is going on, can you |
Added |
So far so good, will report back if I ever see this again. |
I can repro again 版本: 1.66.0-insider (system setup) |
when reload |
@heartacker, you have to be a little more specific. |
|
This behaviour is expected, as I have tried to provide a consistent experience while repositories are being discovered:
|
I was not yet able to pin down the issue but every once in a while I see the SCM repo view select all repos, even though it should just be one. Most often I see the view state restore properly but sometimes not.
Filing this issue to see if someone else is seeing this too and to maybe add some logging when this happens to nail it down?
PS: I am using the web version, but not sure if that matters. When is this state persisted? On shutdown maybe long running?
The text was updated successfully, but these errors were encountered: