Real-time 3D · blueprint · 2 min 39 s · narrated

How the Language Server Protocol works, in 3D

Bea’s editor knows what her code means, but it didn’t work that out itself. See how the Language Server Protocol puts one plug between every editor and every language: a separate server process, JSON-RPC messages over a pipe, a handshake of capabilities, documents kept in step, red squiggles pushed back unasked, questions answered by id and position, and a rename across every file.

0:00 / 2:30
Read the full narration

Space plays and pauses. The arrow keys skip five seconds. The file names, paths and ids are examples; the message formats follow the Language Server Protocol 3.17 specification, the server command is Pyright’s, and the error message is Pyright’s wording.