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

lsp-rust: report command capabilities #4529

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion clients/lsp-rust.el
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,17 @@ https://github.com/rust-lang/rust-analyzer/blob/master/docs/dev/lsp-extensions.m
:semantic-tokens-faces-overrides `( :discard-default-modifiers t
:modifiers ,(lsp-rust-analyzer--semantic-modifiers))
:server-id 'rust-analyzer
:custom-capabilities `((experimental . ((snippetTextEdit . ,(and lsp-enable-snippet (fboundp 'yas-minor-mode))))))
:custom-capabilities `((experimental .
((snippetTextEdit . ,(and lsp-enable-snippet (fboundp 'yas-minor-mode)))
(commands . ((commands .
[
"rust-analyzer.runSingle"
"rust-analyzer.debugSingle"
"rust-analyzer.showReferences"
;; "rust-analyzer.gotoLocation"
"rust-analyzer.triggerParameterHints"
;; "rust-analyzer.rename"
]))))))
:download-server-fn (lambda (_client callback error-callback _update?)
(lsp-package-ensure 'rust-analyzer callback error-callback))))

Expand Down
Loading