-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Search results are showing from excluded files #115897
Comments
cc @roblourens |
I haven't been able to reproduce this, could you try updating to 1.53.0? We made some changes to filtering logic last iteration that might help here. If the issue persists please include a screen recording so I can better identify the problem. |
\gifPlease |
@JacksonKearl I've updated VS code to 1.53.0, but the issue still persists. Im attatching a screen recording. As you can see, I've excluded file2.txt from the search. But when I open it, it is being shown in the search. Again when I'm closing it, it is gone from the search. Version: 1.53.0 |
In that specific case we don't support |
Thanks, I can reproduce it. As a workaround it should mostly work without the leading |
Two issues here - as a general issue, an absolute path to an individual file won't work well in includes or excludes. But also, an open file will still be searched even if it's excluded: #31819. I will close this as a dupe of that. The first is basically covered by the search API issues. |
Issue Type: Bug
In the left hand side global search, I have given a folder path in
files to include
field (src/app/company/) and I've given a subfolder of the previous path infiles to exclude
field (src/app/company/components/company-details/). Initally it was working fine, but when I open a file from this excluded directory in editor, the results from that particular file is then being shown in global search results, even though it comes under the excluded field. If I close that file and search again,it is gone from the search results.VS Code version: Code 1.52.1 (ea3859d, 2020-12-16T16:32:10.090Z)
OS version: Linux x64 5.4.0-65-generic
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (6)
A/B Experiments
The text was updated successfully, but these errors were encountered: