-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Cannot search specific file types anymore #29760
Comments
I'm actually not sure I can support this in a reliable way. I would have to search the full disk, applying a full path glob to every file. Or, I would have to separate the path portion from the glob portion, but you can't do that since there is overlap between glob syntax and valid file names. I could notice that a pattern has a prefix of a root folder's path, but if it works for workspace folders, it should work for any folder. Workarounds:
|
This is a regression from 1.13, not a feature request. I am not asking for this to work in the multi-root case. Notice how my steps above include running an action from the explorer that existed in 1.13, "Find in Folder". If only a single folder is opened, the "Find in Folder" should populate the "files to include" in the same way as 1.13, to allow for a core search feature to continue working (i.e. finding results in a certain file type). i.e. if the workaround is for me to manually replace IMHO this should be also trivial to fix, with an if statement, that in the case of a single opened folder, populates the "files to include" with the relative path, and not with the full folder path, where searching in a file type does not work. Example of searches/tasks that I do often:
|
Hijacked the ownership so that we can have fix soon and have build ready |
Fix is to fallback to old behaviour of populating |
@sandy081 thanks, but I suggest to create a separate issue to verify for June and we leave this one open for July. We still need to revisit your fix and provide a fix that also holds for multi root use. |
@bpasero I would suggest to create a separate issue for multi-root, since this issue is reported especially for single root. |
Fair enough. |
Created #29924 for multi-root set up |
Me too: #29925 |
Thank you @sandy081 ❤️ |
vscode
src
./src
in the files to include. It used to be able for me to append/**/*.ts
to that value (i.e../src/**/*.ts
) to search only in TypeScript files./Users/alex/src/vscode/src/**/*.ts
never finds anything1.13:
Code - Insiders 1.14.0-insider (63def6e, 2017-06-28T05:07:46.148Z):
The text was updated successfully, but these errors were encountered: