-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Fix Issue #39155 (importModuleSpecifierEnding does not apply for module specifier completions) #42467
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
My pleasure! |
@andrewbranch this does not seem to have any effect for me in TypeScript 4.3. With
TypeScript defaults to importing a |
Why are you storing TypeScript code in |
I'm not. #33079 and https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm for some context |
These are two separate things. If you don't want the linter to complain you need to set that in the settings, so the TS Server knows what extensions you are expecting in your imports. |
Did you even read my first comment? I've set the setting to use a Side note: It would be even better to not have to deal with this, but we'll have to wait for the TypeScript team to finalize the ESM support for that. |
I'm sorry, I didn't mean to misunderstand you. That must surely be a bug as specifying I see, what would the upshot of that be? |
They are TypeScript files. But importing them with a |
@AlCalzone I believe you’re describing #44374, fixed by #44602. |
Fixes #39155