Skip to content

Import named Disposable is not moved when moving code to another file #59799

Closed
@alexdima

Description

@alexdima
// @filename: src/_producer.ts
export class Disposable {}
// @filename: src/_consumer.ts
import { Disposable } from './_producer';

class Something extends Disposable {
}

Doing move to a new file on Something generates the following 🐛 (note how Disposable is not imported from _producer.ts):

// @filename: src/Something.ts
class Something extends Disposable {
}

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions