Skip to content

Commit 9e5d8d1

Browse files
authored
bugfix: lsp-rust-analyzer-cargo-cfgs default value (#4920)
* bugfix: lsp-rust-analyzer-cargo-cfgs default value Resolves this error with rust LSP: ``` LSP :: invalid config value: /cargo/cfgs: invalid type: map, expected a string; ``` * update CHANGELOG
1 parent 5c4bf23 commit 9e5d8d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
* Debugging tests in Rust no longer runs all the tests prior to launching debug session.
5252
* Add [[https://devenv.sh/][devenv]] and [[https://jj-vcs.github.io/jj/latest/][jj]] directories to the list of ignored directories (~lsp-file-watch-ignored-directories~)
5353
* Fix bug where qmlls failed to load due to qml not being in ~lsp-language-id-configuration~
54+
* Fix default value for ~lsp-rust-analyzer-cargo-cfgs~
5455

5556
** 9.0.0
5657
* Add language server config for QML (Qt Modeling Language) using qmlls.

clients/lsp-rust.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ or JSON objects in `rust-project.json` format."
860860
:package-version '(lsp-mode . "8.0.0"))
861861

862862
;; https://rust-analyzer.github.io/book/configuration#cargo.cfgs
863-
(defcustom lsp-rust-analyzer-cargo-cfgs ["debug_assertions", "miri"]
863+
(defcustom lsp-rust-analyzer-cargo-cfgs ["debug_assertions" "miri"]
864864
"Extra configurations that are passed to every cargo invocation."
865865
:type 'lsp-string-vector
866866
:group 'lsp-rust-analyzer

0 commit comments

Comments
 (0)