[textDocument/rename] client doesn't obey `RenameOptions` while registering provider
Talv opened this issue · 3 comments
Talv commented
prepareRename
handler can't be registered because options.prepareProvider
is never being set, even if server does include it in its capabilities.
Fix:
--- a/client/src/client.ts
+++ b/client/src/client.ts
@@ -2002,7 +2002,7 @@ class RenameFeature extends TextDocumentFeature<RenameRegistrationOptions> {
}
this.register(this.messages, {
id: UUID.generateUuid(),
- registerOptions: Object.assign({}, { documentSelector: documentSelector })
+ registerOptions: Object.assign({}, { documentSelector: documentSelector }, capabilities.renameProvider)
});
}