microsoft / microsoft/vscode-cpptools
The workspaceSymbols setting of "Just My Code" incorrectly filters out non-system browse.path folders that aren't under the workspace root
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
So if you have a compile_commands.json that refers to folders outside workspace folder then those symbols won't be found. The workaround is to set workspaceSymbols to "all", but then that causes system header symbols to also be found. It should be checking if the workspace symbols are under any of the workspace folder browse paths that are not system browse paths.
I hit this while testing the fix for https://github.com/microsoft/vscode-cpptools/issues/11631 .
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the workspaceSymbols setting's "Just My Code" filtering and the workspace folder browse.path handling. Reproduce with a compile_commands.json that references folders outside the workspace, then verify that symbols under non-system browse paths are found while system header symbols remain excluded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- devtools, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100