TypeScript Version: 2.9.1-dev.20180521
Search Terms:
- Update paths on rename / move
- getEditsForFileRename
Code
- Open this project in vscode: https://github.com/mjbvz/ts-issue-24345 The basic structure is:
index.ts:
import { a } from "./a";
import { b } from "./b";
console.log(a, b)
a.ts:
b.ts:
import { a } from "./a";
export const b = a + 1
- In the project, move the file
b.ts into a sub folder to trigger a path update
Expected behavior:
This should update both the import path for b within index.ts, as well as the import for a inside b.ts
Actual behavior:
Only the paths in index.ts are updated
TypeScript Version: 2.9.1-dev.20180521
Search Terms:
Code
index.ts:a.ts:b.ts:b.tsinto a sub folder to trigger a path updateExpected behavior:
This should update both the import path for
bwithinindex.ts, as well as the import forainsideb.tsActual behavior:
Only the paths in
index.tsare updated