Skip to content

Commit

Permalink
Avoid resolving the path in lsp--system-path
Browse files Browse the repository at this point in the history
This can cause trouble when we are working with remote paths because it is
resolved to local one.
  • Loading branch information
yyoncho committed Nov 8, 2023
1 parent 05dcd06 commit 518f7d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -8079,10 +8079,11 @@ nil."
;; typescript-language-server). This is why we check for existence and not
;; that the path is executable.
(let ((path (lsp-resolve-value path)))
(if (and (f-absolute? path)
(f-exists? path))
path
(executable-find path t))))
(cond
((and (f-absolute? path)
(f-exists? path))
path)
((executable-find path t) path))))

(defun lsp-package-path (dependency)
"Path to the DEPENDENCY each of the registered providers."
Expand Down

0 comments on commit 518f7d8

Please sign in to comment.