microsoft / microsoft/vscode-cpptools
“(declaration)” appears when searching same symbol “fun” in workspace (using “#”), while not appear when searching in a file (using “@”)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Environment
VSCode 1.90.2+ C/C++ Extension 1.21.0 pre-release)
Bug Summary and Steps to Reproduce
Bug Summary:
More info:
- Repro platform: Windows, Linux, Mac
- Repro languages: ENU and loc languages
Steps to reproduce:
- Download the repository https://devdiv.visualstudio.com/DevDiv/_git/Vcls-vscode-test
- Open folder “MultiRootProjects” with VSCode
- Open file “project_A\project_subfolder_H\ references.cpp”
- Pressing F1 or Ctrl+ Shift+ P to show the command palette.
- Search for symbol “fun” in workspace by typing in the command palette "#fun"
- Search for symbol “fun” in the file “references.cpp” by typing in the command palette "@fun"
Expected result:
Display same results as will navigate to the same code line
Actual result:
With “(declaration)” appeared when searching with “#fun”, while without “(declaration)” appeared when searching with “@fun”
#fun: with “(declaration)”
@fun: without “(declaration)”
Configuration and Logs
not related
Other Extensions
No response
Additional context
No response
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 by reproducing the difference between #fun and @fun in the MultiRootProjects workspace, using project_A\project_subfolder_H\ references.cpp and the linked test repository. Compare the workspace and file symbol-search paths and their displayed results; done means both searches show consistent entries while navigating to the same code line.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript, vscode
- Domain
- developer-experience, search, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100