1

I would like to write a visual studio code extension that parse and analyse large log files.

I thought to start with language server extension.

I would like the server to be written in python.

Below, there is an example to server that is written in TypeScript https://code.visualstudio.com/docs/extensions/example-language-server it uses the library "vscode-languageserver".

Is there any module in python equivalent to "vscode-languageserver"?

Do you know any example language server extension that is written in python?

dreftymac
  • 31,404
  • 26
  • 119
  • 182
Yoav
  • 11
  • 3
  • **See also:** https://stackoverflow.com/questions/35281045/is-it-possible-to-write-visual-studio-code-extensions-in-c-sharp – dreftymac Feb 18 '21 at 23:05

2 Answers2

3

I realize this is an old question but in case someone else is looking for this information:

I'm working on a project that implements an LSP server in Python. To accomplish writing the language server in Python we are using a library called pygls.

As with anything, it has its good and bad points but I can say that it has gotten the job done for the aforementioned project, so far.

Cameron
  • 53
  • 10
  • Some nice resources referenced by pygls: https://github.com/microsoft/vscode-python-tools-extension-template https://github.com/openlawlibrary/pygls/tree/main/examples/json-vscode-extension – Robert Lugg Jul 11 '23 at 18:34
0

It looks like there are at least two to take a look at:

Unfortunately, I’m not familiar enough with Python to know which of these are the better choice.

Eric McCarthy
  • 301
  • 2
  • 7
  • thanks! do you know how can i find en example that show how to use those. I mean how to build a server to the extension with those modules? – Yoav Aug 19 '18 at 15:20