From microsoft/vscode#50953
TypeScript Version: 3.0.0-dev.20180601
Search Terms:
- Move to new file
- refactoring
Code
For a project
a.ts
b.ts
import * as a from './a'
console.log(a.x)
- Run the
move to new file refactoring on export const x
Expected behavior:
Unclear what exact behavior should be for b.ts. Perhaps:
import * as a from './a'
import { x } from './x'
console.log(x);
or
import * as a from './a'
import * as x from './x'
console.log(x.x);
Actual behavior:
No update to b.ts. File is now invalid:
b.ts
import * as a from './a'
console.log(a.x)
From microsoft/vscode#50953
TypeScript Version: 3.0.0-dev.20180601
Search Terms:
Code
For a project
a.tsb.tsmove to new filerefactoring onexport const xExpected behavior:
Unclear what exact behavior should be for
b.ts. Perhaps:or
Actual behavior:
No update to
b.ts. File is now invalid:b.ts