Skip to content

Commit

Permalink
lsp-start-plain: fix path that can contain spaces (#4601)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiennq authored Oct 31, 2024
1 parent 7e2701d commit 9b10410
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -9925,12 +9925,10 @@ In case the major-mode that you are using for "
(let ((start-plain (make-temp-file "plain" nil ".el")))
(url-copy-file "https://raw.githubusercontent.com/emacs-lsp/lsp-mode/master/scripts/lsp-start-plain.el"
start-plain t)
(async-shell-command
(format "%s -q -l %s %s"
(expand-file-name invocation-name invocation-directory)
start-plain
(or (buffer-file-name) ""))
(generate-new-buffer " *lsp-start-plain*"))))
(start-process "lsp-start-plain"
(generate-new-buffer " *lsp-start-plain*")
(expand-file-name invocation-name invocation-directory)
"-q" "-l" start-plain (or (buffer-file-name) ""))))



Expand Down

0 comments on commit 9b10410

Please sign in to comment.