d-language-server / vscode-dlang

D language support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=LaurentTreguier.vscode-dls
MIT License
22 stars 7 forks source link

How are the settings in "Contributions" build? #16

Closed andre2007 closed 5 years ago

andre2007 commented 5 years ago

I do not know the Language Server Protocol, but are the settings in "Contributions" hardcoded or are they retrieved from Language Server DLS?

I ask because if they are retrieved from DLS, i would create a feature request for https://github.com/gtache/intellij-lsp to also support automatically showing all settings.

LaurentTreguier commented 5 years ago

I don't really understand your question. What do you mean by "Contributions" ?

andre2007 commented 5 years ago

In the tabstrip "Contributions" the settings of DLS are shown. I was wondering whether these settings are automatically retrieved by means of a Language Server Protocol or you hard coded each setting:

image

LaurentTreguier commented 5 years ago

Oh I see; this tab is part of how VSCode handles its extensions. Any type of extension will have a "Contributions" tab showing its settings, language grammars and the commands it adds to the editor. The settings are not specified by the LSP, every server simply documents whatever settings they have implemented, and those are then typically filled out in JSON format directly by the user. With intellij-lsp, I'm not sure how configuration is handled. Searching for didChangeConfiguration yields some results, so it looks like it's implemented, but I can't find out how you can specify a configuration for a server.

andre2007 commented 5 years ago

Thanks a lot. I close this issue as the question is clarified .