Skip to content

Commit c6a873f

Browse files
author
Mathis
committed
fix: config works with pylsp / pyls
1 parent 46e3e25 commit c6a873f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PythonLanguageClient extends AutoLanguageClient {
2020
.then(() => {
2121
// enable if disabled
2222
atom.packages.enablePackage("atom-ide-base")
23-
atom.notifications.addSuccess("ide-pyhon: atom-ide-base was installed and enabled...")
23+
atom.notifications.addSuccess("ide-python: atom-ide-base was installed and enabled...")
2424
})
2525
}
2626
// Remove deprecated option
@@ -46,8 +46,9 @@ class PythonLanguageClient extends AutoLanguageClient {
4646
}
4747

4848
mapConfigurationObject(configuration) {
49+
const lsp = configuration.pyls || "pylsp"
4950
return {
50-
pyls: {
51+
[lsp]: {
5152
configurationSources: configuration.pylsConfigurationSources,
5253
rope: sanitizeConfig(configuration.rope),
5354
plugins: configuration.pylsPlugins,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"description": "Absolute path of your Python binary. This is used to launch the Python language server. Make sure to install `pyls` for this version of Python. Changes will take effect after a restart of the language server. Use `$PIPENV_PATH/bin/python` if you want to use the pipenv path of your project"
101101
},
102102
"pyls": {
103-
"title": "Path to pyls executable",
103+
"title": "Python Language Server module",
104104
"order": 2,
105105
"type": "string",
106106
"default": "pylsp"

0 commit comments

Comments
 (0)