Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 932a49b

Browse files
Check for executable of language server on exec-path in defvar
1 parent 2f9b001 commit 932a49b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lsp-python-ms.el

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@
3737
(defvar lsp-python-ms-dotnet nil
3838
"Full path to dotnet executable. You only need to set this if dotnet is not on your path.")
3939

40-
(defvar lsp-python-ms-executable nil
40+
(defvar lsp-python-ms-executable
41+
(cond
42+
((executable-find "Microsoft.Python.LanguageServer"))
43+
((executable-find "Microsoft.Python.LanguageServer.exe"))
44+
(t nil))
4145
"Path to Microsoft.Python.LanguageServer.exe")
4246

4347
;; it's crucial that we send the correct Python version to MS PYLS,

0 commit comments

Comments
 (0)