Skip to content

Go to References always reparses a lot of files for the same symbol #13079

Open
@qianzhangxa

Description

@qianzhangxa

Environment

  • OS and Version: macOS Sequoia 15.2
  • VS Code Version: 1.96.2 (Universal)
  • C/C++ Extension Version: 1.22.11
  • If using SSH remote, specify OS of remote machine: Ubuntu 22.04.4 LTS

Bug Summary and Steps to Reproduce

Bug Summary:

I am using VS Code on my macOS to SSH remotely browse Linux Kernel code which I cloned on a Ubuntu Linux machine. When I click Go to References on a symbol, I see a lot of files need to be parsed (like the below) which takes ~10 mins. And next time when I click Go to References on the same symbol again, all those files will be parsed again! So every time it takes ~10 mins to show the references for the same symbol.

Image

Go to Definition doesn't seem to have this problem.

Expected behavior:

I'd expect all the files in the project to be parsed at the very beginning (i.e. when I open the project for the first time) and cache the result somewhere. Reparsing should only be done when there is some code changes.

Configuration and Logs

There is no `c_cpp_properties.json` file in `~/.vscode-server/` on my Ubuntu machine.

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions