Hey Matthias, thx for the Information. I forgot the implementation of TypeScript and cpplite. Those are two good points and I hope to find some stuff there which will be not done by the language Server only.
Cheers Chris Von: Matthias Bläsing Gesendet: Samstag, 16. Januar 2021 22:18 An: [email protected] Betreff: Re: Textmate or LSP for Cucumber Hi Christian, I suggest to have a look at the integration of TypeScript or cpplite inside the codebase. That are from my POV the two reference projects. I think asking for documentation is too much for an effort, that is work in progress and currently driven mostly by Jan alone. The core point is to look at how programmatic/dynamic registration is possible inside a netbeans feature and then figure out, how you can do that from your target language. For example in the TypeScript Editor, the integration of "Comment code" was missing. The issue could be tracked down into the fact, that the TypeScript Editor code did not provide a custom EditorKit, that returned the right mimetype. The EditorKit was defined an then registered in the MimeLookup of the typescript mimetype and picked up by the netbeans infrastructure. Most probably a hint provider could be registered similarly. You'd need to check how the hints are gathered and where/how contributors are found, but it should be doable. Greetings Matthias Am Freitag, den 15.01.2021, 15:04 +0100 schrieb Christian Lenz: > 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 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
