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

fix: handle willRenameFiles result.result nil #401

Merged

Conversation

Mrreadiness
Copy link
Contributor

Now will_do can send result.result=nil to vim.lsp.util.apply_workspace_edit which expect not nil WorkspaceEdit. In some cases (for example when a rust analyzer is enabled) it leads to error.
Be lsp spec willRenameFiles can return an empty result.result. So I added handling of this case. Also, it doesn't look like an error, so there is no error message.

@jamestrew jamestrew merged commit dd9de68 into nvim-telescope:master Sep 15, 2024
11 checks passed
@jamestrew
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants