visual studio code - language server extension that written in python

698 Views Asked by At

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?

2

There are 2 best solutions below

1
On

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.

1
On

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.