microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.99k stars 12.48k forks source link

Move to file changes paths based import to relative import #56784

Open sandy081 opened 1 year ago

sandy081 commented 1 year ago

Testing microsoft/vscode#183683

image
mjbvz commented 10 months ago

Minimal repo: https://github.com/mjbvz/ts-56784

  1. In sub/a.ts, run Move to file or move to new file on abc

Expected The import in b should continue using the paths configuration: import { abc } from "@/abc";

Actual The import is changed to a relative import: import { abc } from "./abc";