‹ BackHN Continuity

Thread

Why building a Rust LSP is hard

144 points · 77 comments · agluszak

  1. octoberfranklin · · focus · HN ↗
    Enter hell: LSP assumes that it's the source of truth, but you still need to access the filesystem yourself, and do it in a synchronized way

    LSP is an example of utterly horrid technical design.

    Stop letting Microsoft design protocols and APIs. They are so. bad. at. it.

    1. ivanjermakov · · focus · HN ↗
      LSP is not that bad. They tried to decouple IDE features from language features.

      Resolving file paths is not trivial because it's language specific.

      Syncing source changes on the LSP server side is necessary to keep packet side small and patching is trivial (span, new text).

      (I made an LSP-powered text editor and implemented LSP client from scratch)

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.