openlawlibrary / pygls

A pythonic generic language server
https://pygls.readthedocs.io/en/latest/
Apache License 2.0
546 stars 101 forks source link

docs: add Document and Workspace symbol example server #470

Closed alcarney closed 1 month ago

alcarney commented 1 month ago

Description (e.g. "Related to ...", etc.)

image

Another example server, this time implementing the textDocument/documentSymbol and workspace/symbol requests

Code review checklist (for code reviewer to complete)

Automated linters

You can run the lints that are run on CI locally with:

poetry install --all-extras --with dev
poetry run poe lint
alcarney commented 1 month ago

even writing your own programming languages now

Mainly to try and make the language "parsing" code as simple as possible so we can focus on the LSP stuff :)

Could you approve it again? You were a bit quick on the draw I'm afraid :sweat_smile:

alcarney commented 1 month ago

Thanks!