pysen-ls>=0.1.0
is required for the language server implementation.
$ pip install "pysen-ls>=0.1.0"
- Lint Current Document (
pysen.triggerLintDocument
) - Lint Entire Workspace (
pysen.triggerLintWorkspace
) - Format Current Document (
pysen.triggerFormatDocument
) - Format Entire Workspace (
pysen.triggerFormatWorkspace
) - Reload Server Configuration (
pysen.reloadServerConfiguration
)
You can configure both client and server settings via Setting page in VSCode.
Keep in mind that you need to call Reload Server Configuration
or restart the vscode instance if you change the server configuration.
Controls the communication method to pysen-ls.
- Value: choices
stdio
: Use stdio to communicate with pysen-ls.tcp
: Use tcp to connect pysen-ls. You need to launch pysen-ls.
Specifies the python path to use pysen.
- Value: string
Specifies the host name to connect pysen-ls server. This setting only works with connectionMode is 'tcp'.
- Value: string
Specifies the port to connect pysen-ls server. This setting only works with connectionMode is 'tcp'.
- Value: number
Controls whether to trigger the lint task on save.
- Value: boolean
Enable/disable code actions.
- Value: boolean
Controls target names for pysen to invoke in the lint task.
- Value: array of strings
- Default:
["lint"]
Controls target names for pysen to invoke in the format task.
- Value: array of strings
- Default:
["format", "lint"]
Traces the communication between VSCode and the pysen language server.
- Value: string
- Default:
"off"