Skip to content

Should not allow renaming keywords #2229

@mjbvz

Description

@mjbvz

TS-go will allow triggering rename anywhere in the file, including on parens and keywords. When you press enter it will then either try doing a rename or say no result

Instead we should fail the rename early. Here's what happens in TS 6

Image

I believe this warning comes from the prepareRename call

Metadata

Metadata

Assignees

Labels

Domain: EditorRelated to the LSP server, editor experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions