IT lexicon › Programming › LSP

LSP Language Server Protocol

Programming På svenska → Updated: 2026-07-29

A protocol that separates language support from the editor. Published by Microsoft in 2016 alongside VS Code and since adopted by practically everyone else.

The problem it solves is multiplicative: with M editors and N languages you previously needed M×N separate implementations of completion, go-to-definition and error highlighting. With LSP the language community writes one server, the editor writes one client, and the total becomes M+N. Communication happens over JSON-RPC on standard input and output, which makes the server an ordinary program with no binding to any host environment. Features are negotiated as capabilities: hover, completion, rename, code actions, formatting, semantic tokens. Well-known servers: rust-analyzer, gopls, clangd, pyright, tsserver. The single biggest reason other editors could keep pace with VS Code.

← Back to the lexicon