"importModuleSpecifierEnding" not added on "Move to new file" refactoring #46290
Labels
Bug
A bug in TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
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: