That would require the editor to be able to build an AST - defeating the point of LSP, because now the editor needs to know every possible language again
I meant the language server builds the normalized, lossless AST and gives it to the editor. Changes in the AST can be provided as events/diffs to the editor. The normalized, source-mapped AST is effectively the stable language protocol. (Possibly given in a columnar, database form via Apache Arrow, but thats impl specific). Was discussing alternative architectures with a collague since even the best language servers really suck on large projects.
octoberfranklin · · focus · HN ↗
LSP is an example of utterly horrid technical design.
Stop letting Microsoft design protocols and APIs. They are so. bad. at. it.
duttish · · focus · HN ↗
lenkite · · focus · HN ↗
looperhacks · · focus · HN ↗
lenkite · · focus · HN ↗