Giter Club home page Giter Club logo

pysen-vscode's Introduction

pysen-vscode

Install

pysen-ls>=0.1.0 is required for the language server implementation.

$ pip install "pysen-ls>=0.1.0"

Commands

  • 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)

Settings

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.

pysen.client.connectionMode

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.

pysen.client.pythonPath

Specifies the python path to use pysen.

  • Value: string

pysen.client.tcpHost

Specifies the host name to connect pysen-ls server. This setting only works with connectionMode is 'tcp'.

  • Value: string

pysen.client.tcpPort

Specifies the port to connect pysen-ls server. This setting only works with connectionMode is 'tcp'.

  • Value: number

pysen.server.enableLintOnSave

Controls whether to trigger the lint task on save.

  • Value: boolean

pysen.server.enableCodeAction

Enable/disable code actions.

  • Value: boolean

pysen.server.lintTargets

Controls target names for pysen to invoke in the lint task.

  • Value: array of strings
  • Default: ["lint"]

pysen.server.formatTargets

Controls target names for pysen to invoke in the format task.

  • Value: array of strings
  • Default: ["format", "lint"]

pysen.trace.server

Traces the communication between VSCode and the pysen language server.

  • Value: string
  • Default: "off"

pysen-vscode's People

Contributors

bonprosoft avatar sergeant-wizard avatar yaegassy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sergeant-wizard

pysen-vscode's Issues

Better way to notify the user to install pysen-ls

Hello I like the project.

I understand most users will read the README and install pysen-ls accordingly, but when the user doesn't,
it takes a while for VSCode to show the user these two pop-up windows.

image

The user also needs to navigate to the "output" window to see that pysen-ls is not found.

I think it'll improve the user experience if the error windowed showed immediately and notified the user that pysen-ls is not found in the corresponding environment.

Add command to restart the language server client

Currently, it is required to reboot the VSCode session in order to apply client configuration changes.
It is helpful for users, especially developers to add the command to restart the language server client as waiting for VSCode to reboot might take a long time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.