"files to include" doesn't work with folder names containing glob characters
See original GitHub issueIssue Type: Bug
- Create a workspace add the following folder, plus couple of other folders
//...
{
"path": "C:\\Users\\...\\folder1",
},
{
"path": "C:\\Users\\...\\folderNamed",
"name": "folderNamed (Special Folder)"
},
{
"path": "C:\\Users\\...\\folder2",
}
//...
- go to explorer view tab
- create same file with
lorem-ipsum
text in all the folders - right click on the
folderNamed (Special Folder)
- click on
File in Folder...
- ensure that files to include set as
./folderNamed (Special Folder)
- type
lorem
in the folder into the Search box - you will see that it retrieves from folder1 and folder2 too
where it should only retrieve from folderNamed (Special Folder)
.
behaviour works fine on folder1
and folder2
since they are not named.
VS Code version: Code 1.39.1 (88f15d17dca836346e787762685a40bb5cce75a8, 2019-10-10T23:31:28.683Z) OS version: Windows_NT x64 10.0.18362
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i9-9900K CPU @ 3.60GHz (16 x 3600) |
GPU Status | 2d_canvas: enabled 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 |
Load (avg) | undefined |
Memory (System) | 63.81GB (39.06GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Extensions (86)
Extension | Author (truncated) | Version |
---|---|---|
better-comments | aar | 2.0.5 |
markdown-imsize | amo | 0.0.2 |
azds | azu | 1.0.120191007 |
emojisense | bie | 0.5.3 |
markdown-mermaid | bie | 1.3.0 |
path-intellisense | chr | 1.4.2 |
vscode-markdownlint | Dav | 0.31.0 |
vscode-eslint | dba | 1.9.1 |
githistory | don | 0.4.6 |
xml | Dot | 2.5.0 |
gitlens | eam | 10.1.1 |
EditorConfig | Edi | 0.14.1 |
prettier-vscode | esb | 2.3.0 |
auto-close-tag | for | 0.5.6 |
auto-rename-tag | for | 0.1.0 |
dotnet-test-explorer | for | 0.7.1 |
vscode-pull-request-github | Git | 0.12.0 |
mdmath | goe | 2.4.0 |
cloudcode | goo | 0.0.12 |
asciidecorator | hel | 0.2.0 |
rest-client | hum | 0.22.2 |
ftp-simple | hum | 0.7.4 |
reg | ion | 1.0.1 |
markdown-extended | jeb | 1.0.13 |
markdown-extension-pack | jeb | 0.0.3 |
plantuml | jeb | 2.12.1 |
super-replace | jeb | 0.3.1 |
sharppad | jma | 1.1.0 |
vscode-peacock | joh | 3.1.5 |
vscodeilviewer | jos | 0.0.1 |
jq-syntax-highlighting | jq- | 0.0.2 |
docomment | k– | 0.1.8 |
wordcounter | kir | 1.9.3 |
rainbow-csv | mec | 1.3.1 |
azure-pipelines | ms- | 1.157.4 |
vscode-apimanagement | ms- | 0.1.1 |
vscode-azureappservice | ms- | 0.16.0 |
vscode-azureeventgrid | ms- | 0.1.1 |
vscode-azurefunctions | ms- | 0.18.1 |
vscode-azurestorage | ms- | 0.7.2 |
vscode-cosmosdb | ms- | 0.11.0 |
vscode-docker | ms- | 0.8.1 |
vscode-logicapps | ms- | 0.2.18 |
vscode-kubernetes-tools | ms- | 1.0.4 |
mssql | ms- | 1.6.0 |
sqlops-debug | ms- | 1.3.0 |
vscode-postgresql | ms- | 0.2.0 |
remote-containers | ms- | 0.81.0 |
remote-ssh | ms- | 0.47.1 |
remote-ssh-edit | ms- | 0.47.1 |
remote-ssh-explorer | ms- | 0.47.1 |
remote-wsl | ms- | 0.39.9 |
vscode-remote-extensionpack | ms- | 0.17.0 |
autorest | ms- | 2.0.1 |
azure-account | ms- | 0.8.6 |
azurecli | ms- | 0.4.6 |
csharp | ms- | 1.21.4 |
github-issues-prs | ms- | 0.9.1 |
Go | ms- | 0.11.7 |
mono-debug | ms- | 0.15.8 |
powershell | ms- | 2019.9.0 |
vscode-node-azure-pack | ms- | 0.0.9 |
vscode-typescript-tslint-plugin | ms- | 1.2.2 |
vsliveshare | ms- | 1.0.950 |
vsliveshare-audio | ms- | 0.1.66 |
team | ms- | 1.149.2 |
azurerm-vscode-tools | msa | 0.7.0 |
debugger-for-chrome | msj | 4.12.0 |
color-highlight | nau | 2.3.0 |
vscode-versionlens | pfl | 0.24.0 |
material-icon-theme | PKi | 3.9.1 |
quicktype | qui | 12.0.46 |
vscode-yaml | red | 0.5.3 |
elastic | ria | 0.13.3 |
vscode-odata | sta | 0.1.0 |
vscode-markdown-paste-image | tel | 0.12.3 |
usql-vscode-ext | usq | 0.2.15 |
vscodeintellicode | Vis | 1.1.9 |
application-insights | Vis | 0.4.2 |
vscode-redis | vit | 1.2.0 |
azure-iot-edge | vsc | 1.17.0 |
azure-iot-toolkit | vsc | 2.10.0 |
vscode-ansible | vsc | 0.5.2 |
WebTemplateStudio-dev-nightly | WAS | 0.0.1925201 |
vscode-todo-highlight | way | 1.0.4 |
t4-support | zbe | 0.4.3 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Characters to Avoid in Filenames and Directories
Illegal Filename Characters · Don't start or end your filename with a space, period, hyphen, or underline. · Keep your filenames to a...
Read more >Bash globbing that matches all files except those with a ...
Now I want to run some commands on only the files which are not mp3 files, or only those which don't have a...
Read more >Glob is not working when directory name with special ...
I got exact solution for my query. below code is a working for me $path = 'temp'. DIRECTORY_SEPARATOR .'dir - [name]'; $path ...
Read more >glob(n) - Arch manual pages
This allows searching of directories whose name contains glob-sensitive ... for complete file paths whose names may contain glob-sensitive characters.
Read more >glob — Unix style pathname pattern expansion ... - Python Docs
altsep then files will not match. If include_hidden is true, “ ** ” pattern will match hidden directories. Raises an auditing event glob....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 ]
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 ) So the bug is in the pre-filled value when using “Find in Folder” not being escaped and not in the “files to include”. Maybe in the “files to include” side we may ask a feature request to enable/disable glob… …but is not a bug there.