LSP, Language Server Protocol, is, as the name says, just a protocol dictating broadly how the *communication* between a client and a server goes, but that's about right.
The server gets from the client (for example, a VS Code extension) which file gets opened/when they get edited, when the...