Giter Site home page Giter Site logo

Comments (5)

wbthomason avatar wbthomason commented on May 28, 2024 3

I already use https://github.com/w0rp/ale for linting, with a larger set of linters. Being able to disable the redundant linting pyls provides would be great.

from python-language-server.

gatesn avatar gatesn commented on May 28, 2024

Would you mind telling me which client you're using? The question here is whether there is a precedent for configuring language servers already. Something I'll need to look into. It might be config files on disk, or it might initialisation opts passed in by the client, with configuration living in the clients config files.

from python-language-server.

wbthomason avatar wbthomason commented on May 28, 2024

I'm using https://github.com/autozimu/LanguageClient-neovim. Per the documentation (https://github.com/autozimu/LanguageClient-neovim/blob/master/doc/LanguageClient.txt) the only configuration options are for the client itself (though you can specify flags to be passed to a specific language server when specifying the command for said server).

The protocol spec does seem to indicate that clients can pass "initialization options" to servers (https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#initialize-request). It's not clear if this is intended as the primary mechanism for configuring language servers (at least to me).

If using that field in the initialization request is the correct way to go, I could make a PR on the client I use to support using it (I could also make a PR to add basic configuration options to this server).

from python-language-server.

tomv564 avatar tomv564 commented on May 28, 2024

The Rust language service uses workspace/DidChangeConfiguration as described in https://github.com/rust-lang-nursery/rls#configuration

As for storing the settings per-project:
The VS Code extension passes key-value pairs from settings.json along using that method.
Sublime Text could store the same options in .sublime-project files.

from python-language-server.

gatesn avatar gatesn commented on May 28, 2024

Example of configuration here: https://github.com/Microsoft/vscode-docs/blob/master/docs/extensions/example-language-server.md

from python-language-server.

Related Issues (20)

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.