Skip to content

Move to new file refactoring misses path update for import * paths聽#24583

Description

@mjbvz

From microsoft/vscode#50953

TypeScript Version: 3.0.0-dev.20180601

Search Terms:

  • Move to new file
  • refactoring

Code
For a project

a.ts

export const x = 123

b.ts

import * as a from './a'
console.log(a.x)
  1. 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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