Thx Geertjan, TLDR; How implementing Fixes/hints based on textmate lexer if smth is missing in the Language Server of a specific language?
so if this is correct, how we can achieve mixed hints? Often it is so, that the language server just come with a basic functionality and if there are hints missing that someone is requesting and is not planned to be implemented into the language server soon or never, we need to add this hints/fixes by our own and that means not into the LSP but into the NetBeans Code. Atm the fix functionality is based somehow of the parser files from an antlr Grammar. How can we do that for textmate lexers? I would prefer that Jaroslav or Jan could tell me more here how I can do that. There is no documentation at all and no code stuff inside netbeans where I can have a look for fixes/hints based on textmate lexer files (new way). Cheers Chris Von: Geertjan Wielenga Gesendet: Montag, 11. Januar 2021 06:36 An: [email protected] Betreff: Re: Textmate or LSP for Cucumber I believe this is true, yes. Gj On Mon, 11 Jan 2021 at 00:19, Christian Lenz <[email protected]> wrote: > Hey all, > > there is a project called cucumberbeans: > https://github.com/amp4045/Cucumberbeans it is based on antlr. When I > remove the grammar file (.g) and the generated sources and the stuff which > is somehow related to antlr, we can see some errors in classes, that there > is some stuff related to antlr. In the repo you can see that they tried to > implement hints, indentation, syntaxerrors, folding, Reformat, code > completion and occurencies. > > So my question is, what of those stuff is possible with textmate, when do > I need LSP and when do I need some other stuff? > I want to move from antlr to textmate and lsp. > > Here is my understanding: > - Textmate is used for > o Syntax highlighting > o Syntax errors > o Braces matching and automatically closing after type open brace > o Indentation and auto indentation on enter > o Folding code blocks > - LSP is used for > o Code completion > o Hints > o Occurencies > o Formatting > > Is this correct? > > > Cheers > > Chris >
