-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed as not planned
Closed as not planned
Copy link
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbol
Milestone
Description
π Search Terms
move to file self imports
π Version & Regression Information
- This is the behavior in every version I tried
- I tried in 5.7.0-dev.20240826
β― Playground Link
No response
π» Code
// file _a.ts
export interface ISomething {
}// file _b.ts
import { ISomething } from './a';
export function func(something: ISomething) {
}Select func and move it to _a.ts
π Observe the result:
π Actual behavior
// file _a.ts
import { ISomething } from './a'; // <------------------ incorrect import from itself
export interface ISomething {
}
export function func(something: ISomething) {
}π Expected behavior
// file _a.ts
export interface ISomething {
}
export function func(something: ISomething) {
}Additional information about the issue
No response
RyanCavanaugh and benjaminjkraft
Metadata
Metadata
Assignees
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbol