diff --git a/lib/main.js b/lib/main.js index 3eadb483..bb598094 100644 --- a/lib/main.js +++ b/lib/main.js @@ -20,7 +20,7 @@ class PythonLanguageClient extends AutoLanguageClient { .then(() => { // enable if disabled atom.packages.enablePackage("atom-ide-base") - atom.notifications.addSuccess("ide-pyhon: atom-ide-base was installed and enabled...") + atom.notifications.addSuccess("ide-python: atom-ide-base was installed and enabled...") }) } // Remove deprecated option @@ -46,8 +46,9 @@ class PythonLanguageClient extends AutoLanguageClient { } mapConfigurationObject(configuration) { + const lsp = configuration.pyls || "pylsp" return { - pyls: { + [lsp]: { configurationSources: configuration.pylsConfigurationSources, rope: sanitizeConfig(configuration.rope), plugins: configuration.pylsPlugins, diff --git a/package.json b/package.json index 5913b18c..51447134 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "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" }, "pyls": { - "title": "Path to pyls executable", + "title": "Python Language Server module", "order": 2, "type": "string", "default": "pylsp"