lspgen

command
v1.10.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL