Skip to content

Go to Definition (F12) will list many redundant files #13661

Closed as duplicate

Description

@gtianw

Environment

  • OS and Version: Windows_NT x64 10.0.19045
  • VS Code Version: 1.100.2 (system setup)
  • C/C++ Extension Version: 1.25.3
  • If using SSH remote, specify OS of remote machine: WSL2, Ubuntu20.04

Bug Summary and Steps to Reproduce

Bug Summary:
Go to Definition will list many redundant files.
These files are not included by CMakeLists.txt or compile_commands.json.
duplicates #11887, but it is no longer active.

Steps to reproduce:

  1. Download issue.zip I provided.
  2. F12 or Ctrl+LeftClick at target_prt.

Image

Expected behavior:
Only parse the file included by CMakeLists.txt or compile_commands.json, and directly jump to function definitions.

Configuration and Logs

c_cpp_properties.json is inside the zip package.

Other Extensions

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions