microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

“(declaration)” appears when searching same symbol “fun” in workspace (using “#”), while not appear when searching in a file (using “@”)

PhoebeTf opened this issue · comments

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:

  1. Download the repository https://devdiv.visualstudio.com/DevDiv/_git/Vcls-vscode-test
  2. Open folder “MultiRootProjects” with VSCode
  3. Open file “project_A\project_subfolder_H\ references.cpp”
  4. Pressing F1 or Ctrl+ Shift+ P to show the command palette.
  5. Search for symbol “fun” in workspace by typing in the command palette "#fun"
  6. 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)”
image

@fun: without “(declaration)”
image

Configuration and Logs

not related

Other Extensions

No response

Additional context

No response