-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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 to include" doesn't work with folder names containing glob characters #82415
Comments
Currently this doesn't work for folders with glob characters in their name... |
Just to clarify.. if this may help for something to be done.. It is not that "it doesn't work with glob characters".. ..since glob characters have a meaning they just need to be escaped in the search pattern. (see #111677 ) |
I agree there. When you input "by hand" a folder or pattern, the better idea would be to enter the path and not the folder's name... or escape its name. |
This is very important feature to search the files in NextJS Projects, which is using [ ] in the folder name. currently I am unable to search in any folder in nextjs contains the character [ or ] |
This BUG prevents searching in properly named next.js projects, where square brackets in folder names are used for REST API pathing such as api/collection/[id] by putting an actual folder named '[id]', see official documentation https://nextjs.org/docs/routing/dynamic-routes . Next.js is one of the most popular react frameworks, maintained by Vercel. Please fix this ! It works fine in Intellij, and I'll have to switch back if you don't. Please consider re-categorizing this as a bug ticket (and a critical one at that), not a feature request. |
Disappointing to see maintainers keep resolving bugs to this one bug no progress has been made. It has been making trouble to view logs for a long time. |
@roblourens Why is this a feature request? When it is clearly a bug, let me explain: The search is broken, it pretends to search in all folders, when it clearly doesn't. For a "search" feature not searching in all elements because of special characters in a folder name, is a clear "false-negative" (it does find something, that it should find when it exists) and as such a bug. Those special characters are allowed characters in any operating system for folder names that VSCode supports (e.g., Microsoft Windows). Aka VSCode does currently not support them same file path character sets that the underlying OS supports. For a file editor/IDE a pretty bad starting point, not considering this as a bug. |
@m1no Theoretically this is the same kind of problem compared to SQL injection, but these "new programmers" just don't want to admit it. |
* Escape special glob chars when using "Find in Folder" Fixes #82415
verif steps:
|
Issue Type: Bug
lorem-ipsum
text in all the foldersfolderNamed (Special Folder)
File in Folder...
./folderNamed (Special Folder)
lorem
in the folder into the Search boxwhere it should only retrieve from
folderNamed (Special Folder)
.behaviour works fine on
folder1
andfolder2
since they are not named.VS Code version: Code 1.39.1 (88f15d1, 2019-10-10T23:31:28.683Z)
OS version: Windows_NT x64 10.0.18362
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Extensions (86)
The text was updated successfully, but these errors were encountered: