LSP support #18
Replies: 1 comment 2 replies
-
I now have an app trgenvsc that generates a VSCode client extension and LSP server for almost any grammar in grammars-v4. The code implements "defs", sort of "refs", and semantic highlighting. Everything in the generated code is from templates, which is why when one generates the extension/server, many files to support XPath are added. The main issue, of course, is where to put the annotations for "defs", "refs", etc. I could add them into the desc.xml in each grammar in grammars-v4, since we already need to encode information about testing a grammar that is not encoded in a grammar, e.g., the "top-level grammar .g4's", the start symbol, test inputs, ports of the grammar, etc. Demo: |
Beta Was this translation helpful? Give feedback.
-
This discussion is about providing antlr5 to IDEs and CI/CD using LSP.
See https://microsoft.github.io/language-server-protocol/ for LSP details.
As a business goal, we want antlr5 tool to be available in any IDE.
As of writing, most IDEs and even vi support LSP, so that makes it a good candidate.
The purpose of this discussion is to establish the corresponding spec.
Beta Was this translation helpful? Give feedback.
All reactions