Skip to content

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

Open
@gtianw

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 code from https://github.com/gtianw/Issue/tree/cpptools/13660
  2. F12 or Ctrl+LeftClick on target_prt.

Image

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

Metadata

Metadata

Assignees

Labels

Language ServiceenhancementImprovement to an existing featurefixedCheck the Milestone for the release in which the fix is or will be available.quick fix

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions