Skip to content

Rename prefix/suffix needs to be opt-in #28679

Closed
@amcasey

Description

@amcasey

I believe this is the main change: 0a97663

I believe the goal was to be able to rename x to y like this:

const x = 1;
export { x };
const y = 1;
export { y as x };

Since editors pre-dating this change don't know that prefix and suffix text might accompany the rename result, they don't apply it, resulting in

const y = 1;
export { y };

which breaks any importing file.

We probably need a UserPreference to make this behavior opt-in.

Metadata

Metadata

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions