← All extensions

Silex

v0.51.0 · by Matanek · added 3 November 2026

Silex language support

LanguagesLanguage servers

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for Silex. The extension's id is silex.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Silex for Zed

This repository contains the Zed extension for the Silex language. It owns the Tree-sitter grammar, Zed queries, and the small Rust adapter that starts the language server supplied by the silex command.

The compiler, semantic analysis and language-server implementation remain in the main Silex repository.

Install the extension

The extension is awaiting inclusion in the Zed extension gallery through zed-industries/extensions#7190. Until it appears in Zed's Extensions view, install it as a development extension from this repository.

First, install Silex and check that Zed can find its command:

silex --version

Install Git and Rust with rustup, then add the WebAssembly target used by Zed extensions:

rustup target add wasm32-wasip2
git clone https://github.com/Matanek/Silex-Extension-Zed.git

In Zed, open the command palette, run zed: install dev extension, and select the cloned Silex-Extension-Zed directory that contains extension.toml. Open an .sx file to start silex lsp automatically. If Silex was added to PATH while Zed was open, restart Zed first.

To update this development installation, pull the repository and run zed: rebuild dev extension from the command palette:

git -C Silex-Extension-Zed pull --ff-only

After the catalog pull request is merged and the extension becomes available, open Zed's Extensions view, search for Silex, and install it there instead.

Development requirements

  • silex available in PATH;
  • Node.js and npm for the Tree-sitter grammar;
  • Rust installed through rustup with the wasm32-wasip2 target for the Zed extension.

Verify the grammar

npm install
npx tree-sitter generate
npm test

Build the extension

cargo build --target wasm32-wasip2

The extension adapter only launches silex lsp. Editor-independent language behavior is implemented and tested in the main Silex repository. The current server provides diagnostics, context-prioritized completion for document, module and package symbols, definition navigation to module and package sources, and inline previews for direct GFX.Color expressions in the executable language subset. Zed renders those previews according to its lsp_document_colors setting. References and refactoring features are not yet advertised.

License

The Silex extension and grammar are licensed under the Apache License 2.0 with LLVM Exceptions (Apache-2.0 WITH LLVM-exception). See LICENSE and NOTICE.

Generated Tree-sitter support code and Rust dependencies remain subject to their respective terms listed in Licenses/README.md.