Documentation
¶
Overview ¶
Command lspgen generates Go types from the LSP 3.17 metaModel.json.
It reads protocol/metaModel.json and produces four files in protocol/gen/:
- tsprotocol.go: All struct types, const enumerations, type aliases
- tsclient.go: Client-side method signatures (request senders)
- tsserver.go: Server-side dispatch table (notification handling)
- tsjson.go: Custom MarshalJSON/UnmarshalJSON for union types
Click to show internal directories.
Click to hide internal directories.