File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,12 @@ which overrides any value that would otherwise be inherited from
616
616
:group 'lsp-rust-analyzer
617
617
:package-version '(lsp-mode . " 9.0.0" ))
618
618
619
+ (defcustom lsp-rust-analyzer-cfg-set-test t
620
+ " force rust-analyzer to set `#[cfg(test)]` for the current crate / workspace."
621
+ :type 'boolean
622
+ :group 'lsp-rust-analyzer
623
+ :package-version '(lsp-mode . " 9.0.0" ))
624
+
619
625
(defcustom lsp-rust-analyzer-use-client-watching t
620
626
" Use client watching"
621
627
:type 'boolean
@@ -1698,6 +1704,7 @@ https://github.com/rust-lang/rust-analyzer/blob/master/docs/dev/lsp-extensions.m
1698
1704
:files ( :exclude , lsp-rust-analyzer-exclude-globs
1699
1705
:watcher ,(if lsp-rust-analyzer-use-client-watching " client" " notify" )
1700
1706
:excludeDirs , lsp-rust-analyzer-exclude-dirs )
1707
+ :cfg ( :setTest ,(lsp-json-bool lsp-rust-analyzer-cfg-set-test) )
1701
1708
:cargo ( :allFeatures ,(lsp-json-bool lsp-rust-all-features)
1702
1709
:noDefaultFeatures ,(lsp-json-bool lsp-rust-no-default-features)
1703
1710
:features , lsp-rust-features
You can’t perform that action at this time.
0 commit comments