-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
"importModuleSpecifierEnding" not added on "Move to new file" refactoring #46290
Comments
Also, I'm not sure why |
It is automatically applied in |
I assume this means Indeed, for auto-imports that seems to automatically add a |
No, I mean |
Ah, OK, I did not think that was an option since it's not valid according to the tsconfig schema: Though trying that out on 4.5.0-dev.20211013 seems to break loading type declarations for eg.
|
Yeah, rxjs will either need to update or weβll need to decide to do something about it per #46281. |
Bug Report
π Search Terms
.js extension missing; ECMAScript modules; ESNext
π Version & Regression Information
β― Playground Link
Not possible, needs refactoring functionality.
π» Code
Open TypeScript project in VSCode with the following in
settings.json
:tsconfig.json
:Create a file
main.ts
:Execute "Move to new file" refactoring on the
foo
function.π Actual behavior
The following import is generated:
π Expected behavior
The text was updated successfully, but these errors were encountered: