Monorepo for Dart LSP (Language Server Protocol) tools.
lsp_generator: Generates Dart classes from the official LSPmetaModel.json.pro_lsp: Core framework containing generated LSP 3.18 models and the transport-agnostic server/client implementation. (README)
Additional tools and resources for testing can be found in the debug/ directory:
lsp_test_server: Reference LSP server implementation used for validating the generated protocol bindings and server-side helpers.vscode-lsp-tester: VS Code extension for live testing and inspecting thelsp_test_servervia TCP.project: Sample LSP project files for testing.
To download the latest metaModel.json and generate the Dart classes into the pro_lsp package, run the following command from the root of the project:
dart run packages/lsp_generator/bin/lsp_generator.dart generateThis command will:
- Download the latest LSP
metaModel.json(currently 3.18). - Generate all structures, unions, enumerations, and type aliases.
- Automatically run
build_runnerinsidepackages/pro_lspto generate thejson_serializableandfreezedhelper files.