Fix emacs-lsp runnables support with native json

(In that case args is a vector, which string-join doesn't like.)
This commit is contained in:
Florian Diebold 2019-03-28 21:32:17 +01:00
parent 2a770190b0
commit 156b1ddf67

View file

@ -159,7 +159,7 @@
(interactive (list (rust-analyzer--select-runnable)))
(-let (((&hash "env" "bin" "args" "label") runnable))
(compilation-start
(string-join (cons bin args) " ")
(string-join (append (list bin) args '()) " ")
;; cargo-process-mode is nice, but try to work without it...
(if (functionp 'cargo-process-mode) 'cargo-process-mode nil)
(lambda (_) (concat "*" label "*")))