Go to definition of struct opens typedef from other file instead of immediate declaration #4135
Labels
bug
Feature: Go to Definition
An issue related to Go to Definition/Declaration.
fixed (release pending)
Language Service
quick fix
Works in VS
So we'd need to fix it for VS Code to reach parity.
Milestone
Type: LanguageService
Windows 10 64 bits
VSCode version: 1.37.1 (user setup)
I have two files in a freshly created folder:
alpaca.h
cat.h
When I open
alpaca.h
, and useGo to definition
on the occurrence ofTest
in thefoo
function, it openscat.h
and shows me the typedefedTest
. While this is indirectly correct, I would have expected intellisense to point me the direct declaration ofTest
, just abovefoo
.If there are more than one
typedef
defined in the same manner, it even opens a peek list of them, but still not the wanted one.The text was updated successfully, but these errors were encountered: