-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Explorer refresh issue again #24995
Comments
The refresh button has 2 purposes:
In your case, since by default we ignore Also note that file watching can always fail, there can be cases where the OS does not deliver an event. |
Thanks! I'll think I'll customize that to remove it from the list. |
Seems the refresh button isn't refreshing my node_modules folder (Version 1.12.2 (1.12.2) 19222cd). This is when node_modules is still in the watcherExclude list. I'll make a report if I get the chance to dig deeper into it. |
Ack! I wish tools would stop making these bad assumptions about I finally figured out that VS Code wasn't refreshing all my file changes because my folder structure was this:
I had purposely located all three projects under a top-level folder called "node_modules" so that I could benefit from the Node Module Resolution Algorithm between them. That is, while I worked on these three related projects, the projects could refer to each other's output as if they had been installed somewhere. I keep running across tools and libraries, including VS Code, that assume there is "one" node_modules folder that matters and that it should always be ignored, or other special rules applied to it. Yes, you should probably ignore the node_modules folder at the root of any given VS Code project, but don't ignore other node_modules or apply the same rules to them! It is infuriating to find these types of "magical" behaviors permeating the Node eco-system. The magic is usually wrong and, when it messes things up, it is mysterious, and takes ages to find out where it is coming from. In this case, after hours of banging my head, it was only @bpasero's off-handed comment above that lead me to discover that VS Code "magically" ignores file system changes in anything called "node_modules". |
Reviving #19377
It's possible I'm misunderstand the design. If the explorer is intended to stay in sync and does so, why have a refresh button? Saw the discussion at #17354 (comment).
Steps to Reproduce:
node_modues
folder in explorer and navigate to aroundrcedit
to see the proper location.react-grid-layout --save
react-grid-layout
has not showed up.I built it from source (is there a live or hot reload functionality? or at least an automatic restart? didn't seem to have it) and dropped a few console logs in the explorerView.ts file. It seems to run
shouldRefreshFromEvent()
when I add and delete; noticed it getting as far as https://github.com/Microsoft/vscode/blob/a9c372aa55243b8c6e181c337504861df54bba66/src/vs/workbench/parts/files/browser/views/explorerView.ts#L556.Happy to do some more investigating if nececcary but I'd prefer to get livereload or even the debugger working first...
The text was updated successfully, but these errors were encountered: