Skip to content

Commit ed917ef

Browse files
ia0brotzeit
authored andcommitted
Restore lsp-rust-analyzer-cargo-all-targets
This partially reverts #3893. The rust-analyzer.checkOnSave.allTargets configuration still exists, although it is internally renamed by rust-analyzer to rust-analyzer.check.allTargets which is the new version. Maybe the intent was to remove lsp-rust-all-targets which is indeed unused by lsp-rust.
1 parent 7a50934 commit ed917ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clients/lsp-rust.el

+7
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,12 @@ The command should include `--message=format=json` or similar option."
495495
:group 'lsp-rust-analyzer
496496
:package-version '(lsp-mode . "6.2.2"))
497497

498+
(defcustom lsp-rust-analyzer-cargo-all-targets t
499+
"Cargo watch all targets or not."
500+
:type 'boolean
501+
:group 'lsp-rust-analyzer
502+
:package-version '(lsp-mode . "6.2.2"))
503+
498504
(defcustom lsp-rust-analyzer-checkonsave-features []
499505
"List of features to activate.
500506
Set this to `\"all\"` to pass `--all-features` to cargo."
@@ -747,6 +753,7 @@ or JSON objects in `rust-project.json` format."
747753
:checkOnSave (:enable ,(lsp-json-bool lsp-rust-analyzer-cargo-watch-enable)
748754
:command ,lsp-rust-analyzer-cargo-watch-command
749755
:extraArgs ,lsp-rust-analyzer-cargo-watch-args
756+
:allTargets ,(lsp-json-bool lsp-rust-analyzer-cargo-all-targets)
750757
:features ,lsp-rust-analyzer-checkonsave-features
751758
:overrideCommand ,lsp-rust-analyzer-cargo-override-command)
752759
:files (:exclude ,lsp-rust-analyzer-exclude-globs

0 commit comments

Comments
 (0)