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

Open
#11,650 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Feature: Symbol Search Language Service
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.