sublimelsp / LSP

Client implementation of the Language Server Protocol for Sublime Text

Home Page:https://lsp.sublimetext.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor/Rename unavailable for function name

AbraxasDMG opened this issue · comments

Hi. Maybe this is by design, but I find it confusing and had to check.

I am using LSP-PowerShellEditorServices. When I try to rename function in powershell script, that option is not available under the menu item Edit > LSP: Refactor > Rename...
Is this something that a specific LSP implementation should take care of (like LSP-PowerShellEditorServices) or is it built into LSP layer itself?

Thanks!

This depends on the LSP server. The server must implement the renameProvider capability to enable this functionality.

See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#serverCapabilities

Thank you very much.