-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 exclude root folders while searching #50638
Comments
Yeah glob matching starts under the search folder so there's actually no way to do this... You can include individual folders with |
Is it possible to provide a special syntax for excluding/including root folders? |
I would support |
Similar to this, it would be useful if the root folder could be referenced, not just in this use-case but in multi-root use-cases as well. See my use-case that would be resolved easily if we could reference root folders: #91102 (comment) |
What happened to @roblourens' idea of supporting per-folder settings in multi-root workspaces? It would also be helpful here. |
This is a major issue for multi-root workspace. Currently I'm hitting with the watch file limits (which I cannot change the environment) and there isn't a way to do |
Looking for the same thing, would like to exclude a folder on a particular root that then doesn't get excluded on any of the others. Something like this:
|
This was an annoying issue to track down, I thought search was bugged for the longest time. Its an issue for me in large projects because I like to have folders like |
There is a precedent for the suggested vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.ts Line 182 in cf49223
|
Hmmm, there have been several requests for this feature but they all keep timing out due to lack of votes. Is there a way to unify all these and get enough votes to get this in? |
This is already considered as a feature request and is in our backlog. Issues on the "Backlog Candidates" milestone are ones that are evaluated based on number of upvotes. |
If I am understanding the issue here properly, although not a complete fix, I've been able to exclude a root folder locally via a slightly hacky solution. Adding the root folder in question (let's call it folder_1) to any of the VSCode search settings doesn't seem to remove it from the search, as noted above. And folder_1 contains many thousands of files, so it doubles my search load time. It's mostly got .c, .h, & .py files in it. To exclude those from my results, I put a .vscode folder into folder_1, and a settings.json inside of that with the following contents: My "files to include line" in my search editor is |
Somewhat related: #82145. Somewhat related on VS Code: How can I exclude files from one of a multi-root workspace's root folders from search in VS Code? |
Testing #50498
This happens irrespective of setting
search.enableSearchProviders"
The text was updated successfully, but these errors were encountered: