-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Exclusion of windows SDK files from search #2320
Comments
Adding folders to search.exclude or files.exclude is supposed to work...but it looks like it's not working correctly for the Windows SDK. |
I saw similar problems with the exclude yesterday (I was going to recommend it for #1119, but it didn't work). These may be considered the same issue. |
@sean-mcmanus The search exclude and files exclude only excludes files from the current folder which i have opened. Also, I couldn't find any information on any configuration based on which this is done. Anyways, normal go to file doesn't include these files whereas go to symbol across files brings up matches from these files. It will be great if you guys work on this and solve it or help me solve it. |
Yeah, the lack of exclusions outside of the workspace is an issue we've had for a long time (see also #1066 )...I thought we had fixed it. |
@sean-mcmanus : In the case of mine, i haven't included the paths, still it picks up and brings up only in symbol search explorer. I don't know why symbol search in workspace looks outside the workspace. I also think it is adding overhead to the performance of symbol search. It would be great if you could dug deep and solve this fundamentally so that performance can also be enhanced. |
Most users consider the "workspace" to include all libraries required to build a component (STL included). So we pull in symbols based on what is set in |
@bobbrow : providing a setting to exclude STLs in search symbol across workspace would do the required. Kindly do give a fix asap. |
@sean-mcmanus , @bobbrow : The Quick fix is highly appreciated. Thanks ! 👍 |
Sure. We're also changing the default to show just symbols in the workspace folder based on our observation of how other extensions behave. And contrary to my comment above, we can do this without causing goto definition to fail for these "external" types. |
@bobbrow : Yeah, i went through the commit. :) |
We have a build with the fix at https://github.com/Microsoft/vscode-cpptools/releases/tag/v0.17.8-insiders if you want to try it out. |
@sean-mcmanus : I installed and experienced the changes. I still believe that this needs an improvement in performance as it still takes more time. |
There is a known performance problem on the first use of Go to Symbol in Workspace while it builds a cache (see #1686 ), but the later uses should be fast -- is that what you're observing or is it always slow? Also, if there's a red flame in the bottom right (i.e. soon after opening a file), the Go to Symbol messages can be stuck by that (see #1928 ). |
@sean-mcmanus : I agree that the first use of go to symbol in workspace is slow as it build the cache, But why can't this be done as part of project loading only. It will really change the experience for the first time users which will have a drastic impact of the delight towards using the product. |
@sean-mcmanus , @bobbrow : |
Yeah, the caching work could be done in the background on workspace loading instead of on first use, we just haven't implemented that yet (I think I mention this in #1686 ). The behavior with friend declarations appearing in the symbol list is inherited from VS 2017, but in that case they show the results with different icons. We could potentially add some option to change this behavior, but we haven't had many requests for this yet. I've created an issue to track this request: #2369 . |
Type: Symbol Search Across Files
I am working on a big sized c++ code base. Its takes 10-15 s to bring up the results. But i see results from the windows sdk include files also which i don't want to. Is there any way i can exclude these files from search symbol across files and also increase the speed for the same.
Describe the bug
Screenshots

The text was updated successfully, but these errors were encountered: