-
Notifications
You must be signed in to change notification settings - Fork 522
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
When doing Context > Use in explorer view, takes 20s for "Connected" icon to move #1965
Comments
We should make our context->use command immediately change the icon. |
After context switch, we do refresh the context tree, so user don't have to wait for the refresh interval. I can't repro this issue using my contexts. @bwateratmsft can you repro this consistently? Does this happen only when you switch to a specific context. Also how long does the command 'docker context ls' takes when you run from CLI |
I have seen this. I suspect the call to refresh context tree is queued behind calls to refresh other panes. This is esp. possible if default 2-sec refresh period was retained when switching to remote context. Instead of expediting the panel refresh we should just change the view model immediately to indicate the new active context. |
Added some traces to debug the issue and it seems like sometimes the command |
Why would updating the view model not work? |
The context switch may indeed take a long time to complete. Consider having a progress indicator while |
I know for at least some parts of the whole operation we have a progress indicator above the Contexts panel, but it seemed to be a little flickery. That said, above the contexts panel isn't very visible, so I'd like to have a progress notification for as long as it takes to get the context switched. When the switching operation finishes, we can update the view model to show the new "Current" node, and the containers/images/etc. views will automatically refresh within 2 seconds. |
I sent a private bit for you to try. The new behavior is
|
We should definitely get this into 1.2.1. |
Fix released in 1.2.1. |
Expected:
"Connected" icon should move quickly
Actual:
"Connected" icon takes 20s to move over, long after the containers/images/etc. views are already refreshed with the new context
The text was updated successfully, but these errors were encountered: