Skip to content

Commit ad4d166

Browse files
committed
feat: make the path to pyls executable configurable
1 parent 1cd5126 commit ad4d166

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class PythonLanguageClient extends AutoLanguageClient {
4949
pylsEnvironment["VIRTUAL_ENV"] = venvPath
5050
}
5151
const python = replacePipEnvPathVar(atom.config.get("ide-python.python"), venvPath)
52-
const childProcess = super.spawn(python, ["-m", "pyls"], {
52+
const pyls = atom.config.get("ide-python.pyls") || "pyls"
53+
const childProcess = super.spawn(python, ["-m", pyls], {
5354
cwd: projectPath,
5455
env: pylsEnvironment,
5556
})
@@ -84,7 +85,7 @@ class PythonLanguageClient extends AutoLanguageClient {
8485
description:
8586
"Make sure to install `pyls` 0.19 or newer by running:\n" +
8687
"```\n" +
87-
`${python} -m pip install 'python-language-server[all]'\n` +
88+
`${python} -m pip install 'python-lsp-server[all]'\n` +
8889
`${python} -m pip install git+https://github.com/tomv564/pyls-mypy.git\n` +
8990
"```",
9091
})

0 commit comments

Comments
 (0)