Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:07:18.473Z (2 wks ago)
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0
- OS Version: macOS Catalina 10.15.3 (19D76)
Steps to Reproduce:
- Open VSCode.
- Create a file
src/constants.js exporting foo
- Import
foo as import { foo } from 'constants'
- Hover over the
constants file path.
- See the following.
module "constants"
@deprecated — since v6.3.0 - use constants property exposed by the relevant module instead.
- ⌘ + click on
constants file path.
- See there are 2 definitions –
constants.d.ts and index.d.ts but no src/constants.js
Expected result:
- see the definition of
foo from src/constants
The same issue occurs when using foo for the first time in a module, no import suggestion is shown.
My jsconfig.json file
{
"compilerOptions": {
"baseUrl": "./src",
"jsx": "preserve",
"module": "es6",
"moduleResolution": "node",
"target": "es6"
},
"exclude": [
"**/node_modules/*",
"coverage",
"dist",
"node_modules"
],
"typeAcquisition": {
"include": [
"cypress",
"jest"
]
}
}
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
src/constants.jsexportingfoofooasimport { foo } from 'constants'constantsfile path.constantsfile path.constants.d.tsandindex.d.tsbut nosrc/constants.jsExpected result:
foofromsrc/constantsThe same issue occurs when using
foofor the first time in a module, no import suggestion is shown.My
jsconfig.jsonfileDoes this issue occur when all extensions are disabled?: Yes/No