-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
Bug Report
🔎 Search Terms
refactoring, move to file
💻 Code
source.ts
:
import { b } from './other';
const a = 1;
const c = a + b;
target.ts
:
export const tt = 2;
Select const c = a + b;
, trigger move to file
refactoring and select target.ts
file.
🙁 Actual behavior
target.ts
:
import { a } from './source';
import { b } from "./other";
export const tt = 2;
const c = a + b;
🙂 Expected behavior
target.ts
:
import { a } from './source';
import { b } from "./other";
export const tt = 2;
const c = a + b;
More examples in the test changes of #54358.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone