Skip to content

Commit 9b10410

Browse files
authored
lsp-start-plain: fix path that can contain spaces (#4601)
1 parent 7e2701d commit 9b10410

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lsp-mode.el

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9925,12 +9925,10 @@ In case the major-mode that you are using for "
99259925
(let ((start-plain (make-temp-file "plain" nil ".el")))
99269926
(url-copy-file "https://raw.githubusercontent.com/emacs-lsp/lsp-mode/master/scripts/lsp-start-plain.el"
99279927
start-plain t)
9928-
(async-shell-command
9929-
(format "%s -q -l %s %s"
9930-
(expand-file-name invocation-name invocation-directory)
9931-
start-plain
9932-
(or (buffer-file-name) ""))
9933-
(generate-new-buffer " *lsp-start-plain*"))))
9928+
(start-process "lsp-start-plain"
9929+
(generate-new-buffer " *lsp-start-plain*")
9930+
(expand-file-name invocation-name invocation-directory)
9931+
"-q" "-l" start-plain (or (buffer-file-name) ""))))
99349932

99359933

99369934

0 commit comments

Comments
 (0)