Skip to content

"Go To Definition" unnecessarily shows import definition when using jsconfig.json #46854

Closed
@sefranz

Description

@sefranz

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.62.1
  • OS Version: Windows 11 Home (21H2)

Steps to Reproduce:

  1. Clone this minimal example
  2. Open file /src/pages/test.jsx
  3. Focus the jsx-tag <HelloWorlder />
  4. Invoke "Go To Definition" (Ctrl+Click / via context menu / F12)
  5. The focus jumps to the import statement in line 2

This behavior might be correct, but highly useless. This way, you have to always manually focus the imported filename and invoke the command again in order to open the corresponding file.

Also, this behavior does not occur when deleting the jsconfig.json file.

nav-test

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions