-
Notifications
You must be signed in to change notification settings - Fork 29.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.exclude does not work for searching symbols across a workspace #46718
Comments
(Experimental duplicate detection) |
This is related to the Symbol search option (https://code.visualstudio.com/docs/editor/editingevolved#_open-symbol-by-name), not the find in all files as you've shown above. As shown it seems to retrieve results from
|
Those settings don't impact symbol search. Not sure whether symbol search is supposed to include node_modules stuff @mjbvz |
Oh really, would've thought anything that included |
@imdadahad Do you have a jsconfig.json file? If not, try creating a simple one at the root of your project: {
"compilerOptions": {
"target": "ES6"
},
"exclude": [
"node_modules",
"**/node_modules/*"
]
} This should exclude node_modules files from symbol search |
Yes, I have this already. |
I have exactly the same issue. Results from 'node_modules' are shown when doing the symbol search. How to exclude specific directories? |
Any update on this, curious to know whether it's an actual bug/issue with config maybe? |
Any update please? React TS project, trying to search for My "search.exclude": {
"**/node_modules": true,
"**/bower_components": true
}, |
Any updates on this? Thanks! |
@mjbvz, @roblourens (sorry to tag you both, just hoping to get some reply and direction) Summary is at the bottom. So, I've code dived a bit, finding is that Workbench search (Quick Open) or whatever anyone calls it, is not using
Under the hood it calls TS Server 'navto' facilitated by Anyway, long story short, Symbol search results are pushed to And then are returned to Quick Open controller. Summing up:
I'd like to try my hand at adding this to VSCode, if maintainers can point me in the correct direction. Should it read from same Appreciate comments. |
A kind ping/reminder - if you could have a look and provide direction/comment? |
Sorry I don't know what the intent is or whether this has been considered, @mjbvz? |
A kind ping @mjbvz :) |
@roblourens I feel workspace search should probably respect
|
Yeah if there is a max result count, then the provider definitely has to do the filtering. Hopefully eliminating results saves more time than it costs to do the glob matching. |
Instructions unclear. I don't have any |
I should have posted here, the feature was pulled out, currently |
I think it makes sense for the language server plugins to be able to resolve those symbols, but also that when quick-searching for symbols, to allow users to say "i don't want to be able to quick-resolve to symbols deep in my node_modules tree". It's useful to be able to find all the symbols in use in my project when jumping through and debugging stuff, but when i'm quick-opening I ALWAYS want to find a symbol that I have defined in my own project, not some deep library code. |
Is there any workarounds to exclude |
I was suffering the same and decided to develop an extension for easy navigation among workspace files and symbols. Hope it helps somebody. It is fully customizable so the user can easily decide which folders are included/excluded from the currently opened workspace/project. https://marketplace.visualstudio.com/items?itemName=kbysiec.vscode-search-everywhere Enjoy. |
Does anybody know the status of this? |
+1 on this, I would to be able to exclude folder from symbol search |
+1 as well, the symbol search feature is not really usable as it is without being able to exclude node_modules from results |
bumping this, this is extremely annoying for JS projects we bootstrap in |
Would've had more luck buying BTC than having this resolved 😒 P.S. Still using PyCharm... |
I would to be able to exclude folder from symbol search |
It appears to have occurred as a result of the installation of a strange extension. I was able to remedy the issue by disabling all of the extensions one by one. |
I'd also love to see this implemented, as many others before me. @mjbvz could you provide some insight into this? |
If it’s reasonable for a first-time contributor to this repo, I’d try my hand at it |
are there any news on this subject? |
Goto symbol is unusable when it's showing results from dist/out/nodemodules etc. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm locking this issue since there have not been any constructive comments in quite a while If you're interested in fixing this, please open a new issue that proposes what the fix would look like at a high level. If that looks good, then we can move on to an implementation |
Steps to Reproduce:
node_modules
directory even if you have added the following your user/workspace settings:The text was updated successfully, but these errors were encountered: