logoalt Hacker News

adastra22yesterday at 9:48 PM1 replyview on HN

It is my understanding that basically all LSP implementations use tree-sitter because of its incremental rebuild capability, and this requires re-implementing the parser.


Replies

afdbcreidyesterday at 10:57 PM

That's just not true. rust-analyzer does not use tree-sitter. Neither does gopls. Nor Pylance. Or tsc. In fact I don't know if there is a single popular LSP that uses it (but there probably is).

Many editors use tree-sitter, but that is separate from the LSP.