Skip to content

How to develop and test a language server? #437

Open
@noklam

Description

Context

First of all, thank you for making this amazing library. I have no prior experience to VSCode extension / Javascript / backend, even though I am only making silly hint by following the tutorial. It's still very exciting that it requires fairly little work to make something like this working in my IDE almost instantly.

This is not a bug or feature request, I am looking for guidance for developing a language server. Specifically, I am trying to develop a language server with VSCode extension in mind.

Questions:

I read through the entire documentation, but I am still confused how to setup a proper develop environment. So far I have get VSCode working with the debug option and running the example successfully.

  1. How should I develop / test during development?
    https://pygls.readthedocs.io/en/latest/pages/user-guide.html#tcp This page mentioned the TCP mode will be useful for developing, but I have no idea how to use this. Do you mindly test via clicking the UI to trigger certain action?

Does it makes sense to use something like Postman to send a request to the language server? So far I have seen the Debug Console showing the response from the Language server, but not the client request. Where can I look for some example?

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions