mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Fix env in emacs runnables support
This commit is contained in:
parent
dc713ea21b
commit
ba45c60611
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@
|
|||
|
||||
(defun rust-analyzer-run (runnable)
|
||||
(interactive (list (rust-analyzer--select-runnable)))
|
||||
(-let (((&hash "env" "bin" "args" "label") runnable))
|
||||
(-let* (((&hash "env" "bin" "args" "label") runnable)
|
||||
(compilation-environment (-map (-lambda ((k v)) (concat k "=" v)) (ht-items env))))
|
||||
(compilation-start
|
||||
(string-join (append (list bin) args '()) " ")
|
||||
;; cargo-process-mode is nice, but try to work without it...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue