Skip to content
Discussion options

You must be logged in to vote

Here’s a practical way to track down why that outside folder is being indexed and how to stop it.


How to see where the path comes from

  1. Run “C/C++: Log Diagnostics” on one of the affected source files.
    In the output, check:

    • Configuration provider (e.g. ms-vscode.cmake-tools)
    • compile_commands path (if used)
    • Include entries and their origin (includePath / system / provider)
  2. Open OUTPUT → “C/C++” and set

    "C_Cpp.loggingLevel": "Debug"
    

    Then watch for lines like “Processing folder (recursive): /some/path”.
    That’s usually coming from browse.path (often expanded from a /** pattern), a provider (CMake Tools), or an include directory pulled from compile_commands.json.

  3. Search for the offend…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by smuehlst
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants