Skip to content

Conversation

alanz
Copy link
Contributor

@alanz alanz commented Sep 5, 2024

Rust analyzer will not return any code actions unless codeActionLiteralSupport is enabled.

This adds it to the default client capabilities, based on what is configured in emacs lsp-mode, see

https://github.com/emacs-lsp/lsp-mode/blob/c36b95be6625dac5a37d3874a1a738e0c84ac39f/lsp-mode.el#L3731-L3738

With this change, they do show up provided you run M-x lsp-code-action when in a valid location.

Rust analyzer will not return any code actions unless
`codeActionLiteralSupport` is enabled.

This adds it to the default client capabilities, based on what is
configured in emacs lsp-mode, see

https://github.com/emacs-lsp/lsp-mode/blob/c36b95be6625dac5a37d3874a1a738e0c84ac39f/lsp-mode.el#L3731-L3738

With this change, they do show up provided you run `M-x
lsp-code-action` when in a valid location.
@cxxxr cxxxr merged commit ff361dc into lem-project:main Sep 6, 2024
@cxxxr
Copy link
Member

cxxxr commented Sep 6, 2024

Thank you

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