-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jsdoc and IntelliSense does not work with imported modules with mjs extension #47037
Comments
Does this reproduce in the latest VS Code insiders build too? Not sure if #27957 is a duplicate or not but any fix would be in the insiders build |
Whatta you know? - seems fixed in insider 1.63.0. |
I do not expect this to be fixed before typescript-4.6 as the whole node12 nodenext support got scheduled to that version |
Wait - is someone messing with my mind? - I'm pretty sure I opened this issue in the vscode repo and now it is back in the typescript repo?!!! What's happening? 🤨 😕🤪 |
Ok closing as likely fixed by TS 4.5 (which is included in current VS Code insiders builds) I transferred the issue since this feature comes from TypeScript |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
minimal
withpackage.json
,index.js
andfoo_module.mjs
and paste the code given later in this post to the respective files, or download zipped examples at end of post.index.js
for jsdoc popups and IntelliSense.Result: Jsdoc and IntelliSense works with
foo_module.js
extension but not withfoo_module.mjs
extension.Minimal working example (also attached at end of post)
package.json
:index.js
:foo_module.mjs
:Results of hovering the mouse over add2:
import { add2 } from "./foo_module.mjs";
- No Jsdoc or IntelliSense:js
and usingimport { add2 } from "./foo_module.js";
- Jsdoc or IntelliSense works fine:Note: both do output
7
as expected running the command$ node index.js
.Attached Minimal Working Examples:
minimal_mjs.zip using
mjs
extensionminimal_js.zip using
js
extensionPS! Erroneously requested a reopen of typescript issue 27957 Support ".mjs" input files, thinking I was at the vscode repo, but maybe that issue is related?
The text was updated successfully, but these errors were encountered: