4 ms·
> It doesn't actually, the "server" can (and in many cases does) run in the JS event loop. Yeah I know it is possible, just not trivial. So for me it was more
by meiraleal 2y ago
> It doesn't actually, the "server" can (and in many cases does) run in the JS event loop.
Yeah I know it is possible, just not trivial. So for me it was more complex to implement it in the browser than just create a simpler tree-sitter.
- duped 2y agoLSP and tree-sitter solve different problems and aren't interchangeable, it sounds like you were trying to pound a square peg into a round hole. LSP doesn't (nor can it) specify anything that would make your life easier to use a language server in the browser. There are editors that provide clients and language servers written in JS, though.