-
Notifications
You must be signed in to change notification settings - Fork 524
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
Attaching shell is only possible after invoking Docker sidebar #2029
Comments
@dschuessler I was not able to reproduce this. I notice in your GIF that you have quite a few containers running, and it's taking a good deal of time to load them--is your Docker daemon over SSH or TCP? |
I'm not sure. I use Docker for Mac on my machine and do not remember configuring any connection options, so I guess I'm using the defaults. Please let me know how to check if this does not answer your question. |
I'm guessing it's Docker Desktop for Mac then. I'll try creating a bunch of containers and see if I can reproduce with more. Any changes to the refresh interval setting? |
Thank you for digging into this. I have no Docker specific settings in VSCode. |
Gotcha. It's hard to tell from the gif but it looks like the Just to eliminate that as a possible cause, can you try running the |
|
Ah, I'm blind! I thought you were doing the built-in command (which uses the |
@dschuessler I was able to reproduce the bug, I'm looking at how best to fix it. |
@EricJizbaMSFT, I have two ideas for a solution but I want to get your thoughts since one of them would involve a change in
So, my two ideas for solution:
|
The auto-refresh behavior is very unique to Docker, so I think your fix here is going to have to be unique to Docker. The Docker example is accessing local resources which is very fast, but most of our trees display Azure resources, which can take a while to load (hence why the cache is beneficial). Also, clearing the cache means the user would lose any progress they've made with the "Load more..." option. I'm okay if you want to change the ui package (aka something like number 1) - but only if it's a configurable thing that's off by default. For example, perhaps it's a setting on AzExtTreeDataProvider |
I'll go ahead and do it in Docker then. Perhaps we can limit it to containers stuff only, since images / registries / etc. aren't nearly as volatile as containers are. |
@dschuessler Thanks for finding this and helping us narrow down the problem! It should be fixed in our upcoming 1.3.0 release. I tested it out and everything seemed to work nicely. |
The fix for this is now released in 1.3.0. |
Steps to reproduce:
docker-compose
project withdocker-compose up
.Expected behavior: I can select a container to which I want to attach a shell.
Actual behavior: I get a toast telling me "No running containers are available to attach" though there clearly are some. Only when I invoke the Docker sidebar it works.
The text was updated successfully, but these errors were encountered: