Update Imports On File Move: does not persist file extension #24493
Labels
Bug
A bug in TypeScript
Fixed
A PR has been merged for this issue
VS Code Tracked
There is a VS Code equivalent to this issue
Milestone
From @misolori on May 30, 2018 15:22
Issue Type: Bug
microsoft/vscode#50488
Example
![ezgif com-gif-maker 9](https://user-images.githubusercontent.com/35271042/40729782-0cbf686e-63e2-11e8-9211-f5632c97e3ef.gif)
Resulting error
![image](https://user-images.githubusercontent.com/35271042/40729816-1bff9a7e-63e2-11e8-805d-bc384369b92e.png)
When moving a js file while using the "Update Imports On File Move" setting and the import has the file extension explicitly set, the auto update will strip out the ".js" extension. This causes issues with the js file referencing it as it needs the extension name.
VS Code version: Code - Insiders 1.24.0-insider (bfd155e, 2018-05-29T06:13:09.810Z)
OS version: Darwin x64 17.5.0
Copied from original issue: microsoft/vscode#50804
The text was updated successfully, but these errors were encountered: