How LSP works: Building an LSP Server from Scratch with Rust

What is LSP? Language Server Protocol (LSP) is what powers code intelligence in modern editors/IDEs. So things like auto completion, go to definition/references, or showing diagnostics and lint errors are all delivered within your favourite editor through LSP. But let&rsquo;s start with the problem first, so that you can understand the painpoints before LSP and how it solves that problem in an…