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

Commit 366097c

Browse files
committed
Fix #61: searchPaths from initialization-options` is ignored.
1 parent d06b8c7 commit 366097c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lsp-python-ms.el

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,13 @@ other handlers. "
360360
(error (concat "Cannot find Microsoft Python Language Server executable! It's expected to be "
361361
lsp-python-ms-executable))))
362362

363-
(lsp-register-custom-settings '(("python.analysis.cachingLevel" lsp-python-ms-cache)))
364-
(lsp-register-custom-settings '(("python.analysis.errors" lsp-python-ms-errors)))
365-
(lsp-register-custom-settings '(("python.analysis.warnings" lsp-python-ms-warnings)))
366-
(lsp-register-custom-settings '(("python.analysis.information" lsp-python-ms-information)))
367-
(lsp-register-custom-settings '(("python.analysis.disabled" lsp-python-ms-disabled)))
363+
(lsp-register-custom-settings
364+
'(("python.analysis.cachingLevel" lsp-python-ms-cache)
365+
("python.analysis.errors" lsp-python-ms-errors)
366+
("python.analysis.warnings" lsp-python-ms-warnings)
367+
("python.analysis.information" lsp-python-ms-information)
368+
("python.analysis.disabled" lsp-python-ms-disabled)
369+
("python.analysis.autoSearchPaths" (> (length lsp-python-ms-extra-paths) 0) t)))
368370

369371
(lsp-register-client
370372
(make-lsp-client

0 commit comments

Comments
 (0)