vscode-docker icon indicating copy to clipboard operation
vscode-docker copied to clipboard

The file list of the container cannot be refreshed

Open xiaguangbo opened this issue 2 years ago • 5 comments

New folders are not displayed, and clicking the refresh button does not work. Sometimes I don't click the refresh button it refreshes itself and then it shows success. If there are files displayed in the file list, use the command to delete them, but the ones in the list on the left will not disappear. image

environment

版本: 1.71.0-insider (user setup) 提交: eebdf8174b087979ae6af103f6f2e2f6f9062056 日期: 2022-08-12T05:17:00.323Z Electron: 19.0.11 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.25179

VSCode “Docker” extension:v1.22.1

xiaguangbo avatar Aug 14 '22 08:08 xiaguangbo

I have not been able to reproduce this including on Insiders. However, it is significantly affected by performance; file enumeration is inherently very slow in Docker because we have to do docker exec commands. We are hoping to improve the performance with #3586.

Do you have a different value in place for the docker.explorerRefreshInterval setting? image

bwateratmsft avatar Aug 15 '22 13:08 bwateratmsft

@bwateratmsft I haven't touched these settings, the container I use is ubuntu 20.04, maybe there are too many files in the container?

xiaguangbo avatar Aug 17 '22 11:08 xiaguangbo

That's possible. Try changing that setting to something slower, e.g. 5000 or 10000. I've seen VSCode start to struggle when the refreshes take longer than 2 seconds.

bwateratmsft avatar Aug 17 '22 13:08 bwateratmsft

@bwateratmsft The parameters have been changed, the effect is not good, and it is still easy to cause the file to not be refreshed.

xiaguangbo avatar Aug 20 '22 13:08 xiaguangbo

Ok. I'm hoping that the changes we are making in #3586 should improve this, we've done some perf improvements around the file explorer.

bwateratmsft avatar Aug 22 '22 13:08 bwateratmsft

This has now been released in Docker extension version 1.23.0.

bwateratmsft avatar Nov 28 '22 19:11 bwateratmsft