-
-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: convenient way for users to set config generically #3686
Comments
That works:
That is a request against lsp protocol. It was suggested in the past but I am not sure what was the outcome. |
Okay, then maybe this is just a documentation request. I can try and put something together.
I think I'm mis-communicating: I don't want to set options that the server doesn't understand, I just want to be able to let the user easily shove in whatever configuration they happen to know makes sense. |
I don't understand - how can we do that without server cooperation? |
I think you've already told me how to do what I want to do :) The problem is: the server supports some configuration In the limit, you could imagine something like VSCode's |
I havent tested it, but generally, you may register a shorter path and pass a map object and it will be sent to the server(that way you can pass all paths in one object). As a side note, I am planning to support settings.json. |
What happens if you have conflicting settings? e.g. if I set an object for |
That is what I haven't tested :) |
Chiming in to second the request. I'm switching to I think the rust-analyzer integration is a good example of the set of "blessed" vars lagging behind the implementation. There are some IMO must-have options ("don't make rust-analyzer contend on a directory lock with actual compilation"; "don't spit out a bunch of dead code warnings for your WIP project") which don't currently have pre-packaged support. Interestingly, it seems that there's currently a mix of missing features that makes it impossible to set config generically for rust-analyzer in particular. I described my amateur investigation at #4506, but tl;dr is that I think rust-analyzer requires currently-unimplemented Point of that is to say that if ad-hoc config isn't a first class documented feature, I guess it's not just hard for people to figure out how to do it, it's also hard for |
We have
defcustom-lsp
, which is great. However, it has two problems:defcustom-lsp
s to the client as soon as they're available in the server. So then users can't set those options easily.It would be nice if there was a convenient way to set "generic" config options for a server. Maybe there already is, and it just needs to be documented, but ultimately they just need a way to set key-value options for a server.
That would solve both problems: users can set the options that they know make sense for the server they're using, even if our client code doesn't expose them nicely.
The text was updated successfully, but these errors were encountered: