Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/Rename unavailable for function name #2345

Closed
AbraxasDMG opened this issue Oct 23, 2023 · 2 comments
Closed

Refactor/Rename unavailable for function name #2345

AbraxasDMG opened this issue Oct 23, 2023 · 2 comments

Comments

@AbraxasDMG
Copy link

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!

@LDAP
Copy link
Contributor

LDAP commented Oct 23, 2023

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

@AbraxasDMG
Copy link
Author

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants