Skip to content

Update Imports On File Move: does not persist file extension #24493

Closed
@mjbvz

Description

@mjbvz

From @misolori on May 30, 2018 15:22

Issue Type: Bug

microsoft/vscode#50488

Example
ezgif com-gif-maker 9

Resulting error
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions