LSP: Where to find examples and a server's capabilities?

Posted by DerZweiteFeO@reddit | learnprogramming | View on Reddit | 0 comments

I recently skimmed the LSP documentation: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/. The concepts are described abstractly, for instance "Semantic Tokens": https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens. Where do I find resources what these concepts are in practice?

I also wonder where do I find the server's capabilities, especially regarding pylsp and basedpyright? So far, I use my editor (Neovim) to print these but this is tedious. I wasn't able to locate a chapter in their documentation listing their capabilities.