Skip to content

Commit 745154e

Browse files
committed
Make path to pyls configurable
1 parent 784dafb commit 745154e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PythonLanguageClient extends AutoLanguageClient {
1313
return "pyls";
1414
}
1515
startServerProcess(projectPath) {
16-
const childProcess = cp.spawn("pyls", {
16+
const childProcess = cp.spawn(atom.config.get("ide-python.pylsPath"), {
1717
cwd: projectPath
1818
});
1919
childProcess.on("error", err =>

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
"dependencies": {
1313
"atom-languageclient": "^0.6.1"
1414
},
15-
"enhancedScopes": [
16-
"source.python"
17-
],
15+
"enhancedScopes": ["source.python"],
16+
"configSchema": {
17+
"pylsPath": {
18+
"title": "Python Language Server Path",
19+
"type": "string",
20+
"default": "pyls",
21+
"description": "Absolute path to ```pyls``` executable."
22+
}
23+
},
1824
"consumedServices": {
1925
"linter-indie": {
2026
"versions": {

0 commit comments

Comments
 (0)