-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Files in node_modules show up in search despite being excluded #30266
Comments
I am seeing a similar issue. I have been able to fix it in mine when the beginning of the path does not use wildcards, by either ending without a
This does not, even though it did before the update:
The strangest part seems to be the syntax DanTup was using. Doing this results in some, but not all, items in my "wrap" folder being excluded. And these are files sitting next to each other in the exact same subfolder of "wrap", so it's not a folder depth issue:
|
Can you both copy the output from the 'Search' output panel? @shockthetoast in your case, are any of the files open? |
Ah, all those files were open. I had no idea that having files open would add them to the search even when they were excluded. Is there any chance that could be made an option? Now with all the files closed (except the settings.json), I'm running a search for "locked". I get results in:
If I use either
So the jQuery file is properly ignored. I've run a number of different searches against different patterns with different results. Before I removed the trailing slash on many of my exclude patterns, I was receiving results in about 50 files instead of the desired 5. I'm not sure if that's exactly what you were asking for - I couldn't find a way to copy the output, so I've just listed the filenames. |
The issue with open files is a bug, tracking it here: #29658 I think the difference between excludes with |
I'm not actually sure what this is - I have an That said, I am unable to repdoduce this issue today in the same project with the same search term! Is it possible something changed in 1.14? (I was on 1.13 before, have been sticking to Stable). |
I did mean the output panel, but it's great that 1.14 fixed it. @shockthetoast, which version were you using? I'm not sure what would have fixed it in 1.14. There were a bunch of search changes but nothing that should have affected this. For future reference, this should log the command used to invoke our search tool: |
Weird, never noticed a dropdown there (not at PC now to check). I'll have another go at reproducing next time at PC but it might be worth just closing this in the meantime until/if I can repro! |
Sorry for the delay. I was on 1.14.0. I am now on 1.14.1. Neither version fixed the issue for me. DanTup, are you still not seeing the issue come back? I'll just include the part of the output that changed, since it's long: It doesn't work when I have the exclude set to this: It does work when I have the exclude set to this: |
@shockthetoast Nope, I can't currently repro this! |
I can :) /shrug |
I'm glad to know I'm not alone. :) It's very strange that it's not working for DanTup but not for you. Did you switch to a Windows system to reproduce the issue, or are you seeing it on OSX now as well? I'm on Win 10 Pro. Let me know if any other details would be helpful. |
Mr original screenshot looks like Windows. I'm currently on a Mac and it's fine. I now can't remember whether I may have been on the Mac every time I was unable to repro. That said, v1.14.2 is out now which says it includes this fix? |
Verifier: On Windows, |
I have an exclusion in
files.exclude
for**/node_modules
but files there still show up in search results:I tried copying the
files.exclude
section and naming itsearch.exclude
but it made no difference (the comment sayssearch.exclude
inheritsfiles.exclude
so I didn't really expect that to fix it).The text was updated successfully, but these errors were encountered: