You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Python 2.7 and 3.5+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol).
5
+
A Python 3.6+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol).
6
6
7
7
## Installation
8
8
9
9
The base language server requires [Jedi](https://github.com/davidhalter/jedi) to provide Completions, Definitions, Hover, References, Signature Help, and Symbols:
10
10
11
11
```
12
-
pip install python-language-server
12
+
pip install python-lsp-server
13
13
```
14
14
15
15
If the respective dependencies are found, the following optional providers will be enabled:
@@ -24,13 +24,13 @@ If the respective dependencies are found, the following optional providers will
24
24
Optional providers can be installed using the `extras` syntax. To install [YAPF](https://github.com/google/yapf) formatting for example:
25
25
26
26
```
27
-
pip install 'python-language-server[yapf]'
27
+
pip install 'python-lsp-server[yapf]'
28
28
```
29
29
30
30
All optional providers can be installed using:
31
31
32
32
```
33
-
pip install 'python-language-server[all]'
33
+
pip install 'python-lsp-server[all]'
34
34
```
35
35
36
36
If you get an error similar to `'install_requires' must be a string or list of strings` then please upgrade setuptools before trying again.
@@ -57,12 +57,12 @@ Configuration is loaded from zero or more configuration sources. Currently impl
57
57
- pycodestyle: discovered in `~/.config/pycodestyle`, `setup.cfg`, `tox.ini` and `pycodestyle.cfg`.
58
58
- flake8: discovered in `~/.config/flake8`, `setup.cfg`, `tox.ini` and `flake8.cfg`
59
59
60
-
The default configuration source is pycodestyle. Change the `pyls.configurationSources` setting to `['flake8']` in order to respect flake8 configuration instead.
60
+
The default configuration source is pycodestyle. Change the `pylsp.configurationSources` setting to `['flake8']` in order to respect flake8 configuration instead.
61
61
62
62
Overall configuration is computed first from user configuration (in home directory), overridden by configuration passed in by the language client, and then overriden by configuration discovered in the workspace.
63
63
64
64
To enable pydocstyle for linting docstrings add the following setting in your LSP configuration:
65
-
`\` "pyls.plugins.pydocstyle.enabled": true \``
65
+
`\` "pylsp.plugins.pydocstyle.enabled": true \``
66
66
67
67
See [vscode-client/package.json](vscode-client/package.json) for the full set of supported configuration options.
68
68
@@ -108,33 +108,6 @@ To run the test suite:
108
108
pip install .[test] && pytest
109
109
```
110
110
111
-
# Develop against VS Code
112
-
113
-
The Python language server can be developed against a local instance of
0 commit comments