Skip to content

.ts endings reverted to .js when imports are auto-updated after moving a file #54001

@ssalbdivad

Description

@ssalbdivad

Bug Report

🔎 Search Terms

vscode, language server, imports, .ts, .js, extensions, auto-update, refactor

🕗 Version & Regression Information

  • This is the behavior in every version I tried (have seen this since .ts suffixes were release)

@jakebailey requested I log this.

Repro

This video is taken is with typescript.preferences.importModuleSpecifierEnding set to "auto" (as shown in the second part of the clip). Also tested this setting as "js", same result.

TsToJsExtensionBug.mp4

🙁 Actual behavior

the paths are correctly updated but .ts endings are replaced with .js

🙂 Expected behavior

.ts endings from the original file are maintained, the paths are correctly updated

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions