vscode-pylsp extension
Unofficial LSP extension for pylsp. This repository has no affiliation with them.
This extension is very bare bones. It's the bare minimum to have a working LSP client for VSCode.
Due to the modular nature of pylsp
, which enables you to choose your linter/formatter etc, this extension does not install anything for you. You'll have to do that yourself.
The only requirement is that the pylsp
executable is available in your $PATH
environment variable.
For documentation see pylsp's documentation.
Installation(VSCode extension only)
Download extension file
curl -LO "https://github.com/jhzn/vscode-pylsp/releases/download/v0.0.1/vscode-pylsp-0.0.1.vsix"
code --install-extension vscode-pylsp-0.0.1.vsix
From source
git clone https://github.com/jhzn/vscode-pylsp
cd vscode-pylsp
yarn install_extension
Configuring
Configuring pylsp
can be done via the settings.json
file.
See: https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md for the options
Notice
This is early software, do not expect perfection.
Hacking on this extension
- Run
yarn; yarn build; code .
in the root directory - Navigate to src/extension.ts
- Hit F5 to open a new VSCode instance in a debugger running this extension.
- Navigate to some Python code in VSCode
Inspiration
https://github.com/microsoft/vscode-extension-samples/blob/main/lsp-sample/client/src/extension.ts
https://github.com/palantir/python-language-server/tree/develop/vscode-client
https://gitlab.com/torokati44/vscode-glspc