Skip to content

lsp-rename: check if supported before prompting for a name #2314

@nbfalcon

Description

@nbfalcon

When I start using a new language sever, I don't know what it supports. If because of that I try to rename something, even though the language server doesn't support it, I just end up wasting my time coming up with a new name.

lsp-rename should do a capability check + prepareRename before asking the user for a new name. This will improve discoverability, because users aren't punished for not knowing that rename doesn't work.

This will be an easy fix.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions