Skip to content

Commit dbda7ad

Browse files
committed
lsp-rust: Append --no-run flag for debugging
Change the logic of lsp-rust-analyzer-debug to append --no-run when it's not already in cargo-args, not the other way round. The result is used only for obtaining the compiler-artifact, no need to run the tests to obtain it.
1 parent 83c7dd0 commit dbda7ad

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
@@ -47,6 +47,7 @@
4747
* Fix bug in lsp-odin where ~f-join~ collapses double slashes. Using ~format~ instead.
4848
* Fix missing gopls inlay hints when ~lsp-use-plist~ is true
4949
* Fix bug where persist was attempted when lsp-session-file is nil
50+
* Debugging tests in Rust no longer runs all the tests prior to launching debug session.
5051

5152
** 9.0.0
5253
* 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
@@ -1561,7 +1561,7 @@ and run a compilation"
15611561
:label) runnable))
15621562
(pcase (aref cargo-args 0)
15631563
("run" (aset cargo-args 0 "build"))
1564-
("test" (when (-contains? (append cargo-args ()) "--no-run")
1564+
("test" (unless (-contains? (append cargo-args ()) "--no-run")
15651565
(cl-callf append cargo-args (list "--no-run")))))
15661566
(->> (append (list (executable-find "cargo"))
15671567
cargo-args

0 commit comments

Comments
 (0)