native es-Module IntelliSense import does not import correct path. #85502
Labels
javascript
JavaScript support issues
upstream-issue-linked
This is an upstream issue that has been reported upstream
Version: 1.40.1
Commit: 8795a98
Date: 2019-11-13T16:49:30.162Z
Electron: 6.1.2
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.0.0-31-generic snap
Steps to Reproduce:
export const something = 'something';
Does this issue occur when all extensions are disabled?: Yes
My goal is to import files using the IntelliSense prompts for the correct module (native JS with ES Modules).
I would expect the path to be correctly injected, however the extension is missing, which does not comply with ES module standards for paths.
What I am seeing instead, is an almost complete path. But it is missing the file extension (if it is needed)
Currently, I am supplying the file extension manually afterwards the IntelliSense inserts the path.
This is only a problem when using ES Modules and browser/Node.js, as the cjs pattern is fine with resolving the extension (either at compile or run time, respectively)
The text was updated successfully, but these errors were encountered: