Skip to content

Go to definition shows Node require statement as definition #39895

Closed
@gorgos

Description

@gorgos

I'm simply doing

const { calcMargin } = require('../../order-utils');
...
calcMargin()

and the calcMargin call shows two definitions: 1. the require line and 2. the actual function definition that I want to go to.

vs-goto-small

Version: 1.47.3
Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e
Date: 2020-07-23T13:08:29.692Z (1 wk ago)
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.6.0

Related but not identical to #37816.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Fix 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