Home:ALL Converter>Building a tool to leverage the Language Server Protocol in general and VSCode's ~/.vscode/extensions as a server launch mechanism in particular

Building a tool to leverage the Language Server Protocol in general and VSCode's ~/.vscode/extensions as a server launch mechanism in particular

Ask Time:2021-05-04T19:13:52         Author:pajato0

Json Formatter

I am developing a free software code coverage tool that leverages LSP. I do not want to reinvent the wheel in order to specify and launch a particular language server. What seems to make sense is to use VSCode to obtain the LS extension from the marketplace which will establish an entry in ~/.vscode/extensions. Once I have the extension on my computer I would use it to launch the LS much as VSCode does.

So now I need to grok this extension format to develop a launcher inside my tool. I am looking for specs, examples, tutorials, code or other material that will help, especially from other developers who have done this already.

I am already quite familiar with the LSP spec and some Microsoft VSCode sites and articles, fwiw.

Perhaps a link to the VSCode source where it leverages an extension to launch a language server would be helpful.

Author:pajato0,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67383677/building-a-tool-to-leverage-the-language-server-protocol-in-general-and-vscodes
yy