Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PKL Language Support (Rust)New to Visual Studio Code? Get it now.
PKL Language Support (Rust)

PKL Language Support (Rust)

prefix.dev GmbH

| (0) | Free
Language support for the PKL configuration language, implemented in Rust.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PKL Language Support for VS Code

This extension provides language support for the PKL configuration language.

Features

  • Syntax highlighting
  • Parse error diagnostics
  • Document symbols (Outline view)
  • Go to definition
  • Hover information
  • Code completion
  • Semantic token highlighting

Requirements

This extension requires the rpkl-lsp language server to be installed and available in your PATH.

Building the Language Server

From the root of the rpkl repository:

cargo build --release -p rpkl-lsp

Then add the binary to your PATH, or configure the path in VS Code settings:

{
  "pkl.server.path": "/path/to/rpkl-lsp"
}

Extension Settings

  • pkl.server.path: Path to the rpkl-lsp executable. If not set, will look for 'rpkl-lsp' in PATH.
  • pkl.trace.server: Traces the communication between VS Code and the language server.

Development

Building the Extension

cd editors/vscode
npm install
npm run compile

Packaging

npm run package

This creates a .vsix file that can be installed in VS Code.

Testing Locally

  1. Open the editors/vscode directory in VS Code
  2. Press F5 to launch a new VS Code window with the extension loaded
  3. Open a .pkl file to test the extension

License

Apache-2.0

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