Skip to content

pro100andrey/lsp_protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

213 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LSP Protocol

Monorepo for Dart LSP (Language Server Protocol) tools.

Packages

  • lsp_generator: Generates Dart classes from the official LSP metaModel.json.
  • pro_lsp: Core framework containing generated LSP 3.18 models and the transport-agnostic server/client implementation. (README)

Debug & Testing

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 the lsp_test_server via TCP.
  • project: Sample LSP project files for testing.

Code Generation

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 generate

This command will:

  1. Download the latest LSP metaModel.json (currently 3.18).
  2. Generate all structures, unions, enumerations, and type aliases.
  3. Automatically run build_runner inside packages/pro_lsp to generate the json_serializable and freezed helper files.

About

Unified LSP 3.17 Dart bindings and server API implementation.

Topics

Resources

License

Stars

Watchers

Forks

Contributors