Skip to content

go to type definition get unexpected behavior on pointer #8337

@cloud-yu

Description

@cloud-yu

Bug type: Language Service

Describe the bug

  • OS and Version: ubuntu 20.04 for wsl2
  • VS Code Version: 1.61.2
  • C/C++ Extension Version: v1.7.1

Expected behavior
go to type definition on pointers should find type definition by "variable type" not by "variable name"

here comes the e.g.
go to type def on pre --> comes LINKED member, with the same "variable name"
go to type def on curpos --> got null.

both were expected to jump to NODE
Screenshots
11

Metadata

Metadata

Assignees

Labels

Feature: Go to DefinitionAn issue related to Go to Definition/Declaration.Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.quick fix

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions