Incorrect tool-tip and definition path for import statements in js file #25197
Labels
*as-designed
Described behavior is as designed
javascript
JavaScript support issues
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Steps to Reproduce:
npm install
)'invariant'
on the line that saysimport invariant from 'invariant'
.Go to definition
command.In step 4, I expected to see a tool-tip displaying the path to my local
node_modules
directory inside of my repo. Instead, I was shown a path to the globalnode_modules/@types
directory on my system.Likewise in step 5, when I pressed F12 vscode opened a
index.d.ts
instead of opening the localnode_modules/invariant/index.js
file.Knowing the types that vscode is using to display Intellisense is not really useful to me because they almost never match the version of the code that I'm actually working with. I would strongly prefer to at least be able navigate to the actual implementation easily instead of to the
.d.ts
definition file.Thank you.
The text was updated successfully, but these errors were encountered: