Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>capnp-ls-clientNew to Visual Studio Code? Get it now.
capnp-ls-client

capnp-ls-client

tomitty

|
13 installs
| (0) | Free
A language client of Cap'n Proto Language Server
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cap'n Proto Language Support for VS Code

A VS Code extension that provides language support for Cap'n Proto schema files.

Features

  • Go to definition
  • Diagnostics (error reporting)

Requirements

  • Cap'n Proto compiler(version 1.1.0 or higher): capnp
  • Cap'n Proto Language Server: capnp-ls

Extension Settings

This extension contributes the following settings:

  • capnp-ls-client.languageServer.path: Path to the Cap'n Proto language server executable. If not specified, the extension will first look for a capnp-ls binary in the extension directory, then search in the system PATH. For Linux x86_64 systems, the binary will be automatically downloaded if not found in either location.
  • capnp-ls-client.compiler.path: Path to the Cap'n Proto compiler executable. If not specified, it defaults to "capnp" from the system PATH. When using a bundled version of capnp-ls (built with -DUSE_BUNDLED_CAPNP_TOOL=ON), this setting is optional and the bundled compiler will be used automatically.
  • capnp-ls-client.compiler.importPaths: Additional import paths for Cap'n Proto schemas.
  • capnp-ls-client.server.extraEnv: Extra environment variables that will be passed to the capnp-ls executable.
    • CPP_LOG: Log level for the Cap'n Proto language server.
      • Example: CPP_LOG=lsp_server=info: Set log level to info.
      • Default: CPP_LOG=lsp_server=warning

Example configuration:

To customize the client settings, edit the .vscode/settings.json file in your workspace as follows:

{
    "capnp-ls-client.languageServer.path": "/absolute/path/to/capnp-ls",
    "capnp-ls-client.compiler.path": "capnp",
    "capnp-ls-client.compiler.importPaths": [
        "path/to/schema/imports"
    ],
    "capnp-ls-client.server.extraEnv": {
        "CPP_LOG": "lsp_server=warning"
    }
}

See example configuration for more details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft