-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
File explorer is not updated after many file changes occur #28432
Comments
VS Code used to nicely auto-refresh all external file system changes. Now (seemingly) nothing is auto-refreshed. In the file explorer, for example, I am now forced to press the refresh icon to get externally changed folders and files to appear. If config files are changed (tasks.json, launch.json, etc.) I have to close/open VS Code to get the changes recognized. Please fix! Software:
(And, yes, I have tried restarting Windows.) EDIT: I am only seeing this under Windows. VS Code 1.13.1 running on Mac correctly auto-refreshes the file explorer and editors whenever the file system changes. So, seems that something broke only on Windows? I went back to VS Code 1.11.0 and 1.12.0 on Windows and still auto-refresh was not working. So, I don't know when it broke. EDIT 2: Please see my comment in #24995 about VS Code ignoring changes in any folder named "node_modules". Turns out, this way my issue (see my comment #24995 for my use-case). Please don't make the assumption that every folder named "node_modules" should be magically ignored. It can break legitimate uses of the Node Module Resolution Algorithm. |
I launched with
So, it seems like the VS Code process is aware of the file system changes, but the updates are not making it all the way to the user-interface. |
VSCode doesn't handle refresh properly when working on a multi-folder root. I have to manually trigger The files were not in git. |
I would also prefer the explorer to refresh automatically. I can't see any benefit of not. I imagine that this is not done, because the explorer 'jumps' to the open file when refreshed. But I also don't like this behavior. I don't think the scroll should change when refreshing. Thanks for your great work! |
It's an important bug that can lead to error. I hope it can be fixed as soon as possible. |
I agree with @Paviluf. If I This is a standard feature in every other ide. |
I've also experienced this after switching branches and pulling latest code. The tree was not updated and it left me confused as to why I couldn't find specific files I knew existed. VScode 1.17.2 |
@Tyriar shouldn't the new file watcher improve the experience? |
@kieferrm there are some issues with the new watcher (here) and some with the older watcher as well (eg. this issue). I think performance is generally better with the new one, supporting multiple roots was easy and it's now using the same watcher on all platforms (before we hand-wrote/owned the Windows one). |
Hi, is this fixed? I'm still seeing this under macOS, 1.19.1 |
@boyangwang, nope not yet fixed under MacOS or Windows. |
In MacOS, I press Cmd + b then Cmd + b again refresh. |
@thoqbk, the issue is not that you cannot refresh the explorer manually, but rather that the explorer doesn't refresh automatically (which it did used to, but that behavior broke somewhere along the way). |
@mattflix, yes I know that. I tried to find some shortcut keys to refresh manually but it doesn't work. |
@thoqbk I'm in MacOS and experiencing the same problem, but Cmd + b (twice) doesn't refresh the explorer for me. Are you aware of a menu option for refreshing? update: Just finally saw the refresh button in the explorer, looks like a circular arrow |
Linux 17.10 x64 is having same problem that file explorer is not updated. |
High Sierra 10.13.1 (17B1003) having the same problem. |
Still happening in vsCode v1.19.3 macOs with High Sierra 10.13.3, even having the scm activity panel selected. Please, take care of this issue. It is annoying to have to click on the refresh button and using git integration gets confusing. |
Yep, still happens all the time. CMD + P |
After installing MacOS Catalina, file changes are not reflected to the Explorer and add-ons do not get get that information either. VSC: 1.40.0 |
Same here |
Any changes on this issue? I am working via ssh using sshfs (remote filesystem) and after any manipulations performed on connected computer changes doesn't appear on mine( After manually refreshing list of files using corresponding button all appears. It makes me sometimes crazy |
i created a new file with "touch blahblah.js" and doesn't show up after changes/saving/etc.... |
I'm having this issue and the behaviour is exaclty what @marvila commented above. If i open a folder that is a simbolic link, my source control file explorer does not update.
|
I have renamed a src folder, and now when I do "Go to File..." there is a lot of dead files there. I tried "Refresh File Explorer" and restarting/reloading VSCode. Neither works, I have to try to navigate file and get the error "Unable to read file" then it will update that file (by removing it from index), but not all files. Is there a way to force refresh all files? I think the watcher isn't working in Windows. |
VS Code: 1.42.0 I was getting that notification "Visual Studio Code is unable to watch for file changes in this large workspace" when I opened a laravel project in VS code, and also my file explorer didn't refresh itself when I added a new file. Then I tried this quick solution here, and my file explorer problem was automatically solved. It might help someone else that has the same problem as me. |
Files are not updated when pulling from I am forced to clone origin once again. |
Having a similar issue. My file list does not update for any terminal actions that create new commands: Version: 1.47.3 (user setup) This is on remote WSL2. I can open the folder locally on the filesystem and it works fine. As a somewhat unrelated note, the Linux build also works fine so this issue appears to be related to the WSL remote functionality. |
I'm also facing the similar issue with the VS Code. I'm using laravel framework. and whenever I create any file using make:controller anyfilename , in terminal, the file does not get updated in file system of vs code. Hoping for this bug to be fixed as soon as possible. |
Version: 1.50.0 (system setup) Windows 10 with WSL 2 and Ubuntu 18.04. |
probably a wsl 2 issue, I have the same problem with Ubuntu 20.04 I also don't have IntelliSense for my node modules |
Version: 1.51.1 I am having a similar issue using Ubuntu 20.04, but it seems to occur only if the file is named .settings To reproduce the issue:
Extensions installed: |
I was having this problem because I was in |
I had the same issue on Fedora 33, Code 1.51.1.
this link helped me to fix it: |
Having the same issue in Kubuntu 20.04.1. I recently migrated to Kubuntu. I was using Manjaro and it did not have this problem. BTW, I see people do "Reload Window" thing. Don't do that, it's a waste of resource and time. Instead, do "Refresh Explorer" which only, well, refreshes file explorer. UpdateThis solved my problem. |
The same issue on windows 10 wsl 2 using ubuntu remote.
Update:In my case it was because i had my project folder on my windows file system, instead of inside the wsl C:/Users/Paul/Projects <-- ❌
\\wsl$\Ubuntu\home\paul\projects <-- ✔ |
@PaulPCIO That is correct, if you want to follow that issue particluarily subscribe to this: microsoft/WSL#4739 Problem is that plan9 doesn't transfer file change events through the barrier. Practically this means you have to live in WSL file system or Windows file system, trying to mix the two will cause problems with dev tools. Personally I hope Microsoft implements real ext4 or linux compatible FS driver for Windows so that it won't require that hacky Plan9, instead the WSL could appear as real lettered drive without network mapping. |
I think this issue has grown sufficiently enough that imho it is no longer possible to figure out each individuals issue people have with the file watcher in VSCode. If there are no objections I would like to close this one and open individual issues that are then easier to track. Since this issue is specifically around the explorer not showing changes when they happen, I opened #126817 to investigate whether we could simply refresh the explorer automatically in certain situations to make the issue less likely to occur. Some things I want to make clear:
If people have specific issues that are easy to reproduce, then please ping here and we can convert them into individual issues top level and further discuss. Please also be aware of other issues already reported:
file-watcher
Thanks! |
@bpasero When raising the new issues can you link them to this issue, so we can keep track? As you can appreciate this issue was raised over 4 years ago with no movement. |
I will do my best 👍 |
Hello,
I noticed that sometimes (often ?) the file explorer doesn't get updated (missing files/folder) after creating new files/folders with something like a git pull or using symfony console to generate files.
Refreshing the explorer using the little refresh icon make the files/folders appear.
This is a follow up of this issue #24309
Thanks !
The text was updated successfully, but these errors were encountered: