Skip to content

Commit 4bb61e6

Browse files
committed
add :features to checkOnSave and use original descriptions
1 parent 1e14a3f commit 4bb61e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clients/lsp-rust.el

+4-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ the latest build duration."
184184
:package-version '(lsp-mode . "6.1"))
185185

186186
(defcustom lsp-rust-features []
187-
"List of Cargo features to enable."
187+
"List of features to activate.
188+
Set this to `\"all\"` to pass `--all-features` to cargo."
188189
:type 'lsp-string-vector
189190
:group 'lsp-rust-rls
190191
:package-version '(lsp-mode . "6.1"))
@@ -482,7 +483,7 @@ belongs to."
482483
:package-version '(lsp-mode . "6.2.2"))
483484

484485
(defcustom lsp-rust-analyzer-cargo-watch-args []
485-
"Cargo watch args."
486+
"Extra arguments for `cargo check`."
486487
:type 'lsp-string-vector
487488
:group 'lsp-rust-analyzer
488489
:package-version '(lsp-mode . "6.2.2"))
@@ -745,6 +746,7 @@ or JSON objects in `rust-project.json` format."
745746
:checkOnSave (:enable ,(lsp-json-bool lsp-rust-analyzer-cargo-watch-enable)
746747
:command ,lsp-rust-analyzer-cargo-watch-command
747748
:extraArgs ,lsp-rust-analyzer-cargo-watch-args
749+
:features ,lsp-rust-features
748750
:allTargets ,(lsp-json-bool lsp-rust-analyzer-cargo-all-targets)
749751
:overrideCommand ,lsp-rust-analyzer-cargo-override-command)
750752
:files (:exclude ,lsp-rust-analyzer-exclude-globs

0 commit comments

Comments
 (0)