Skip to content

Type to search extensions

WGSL/WESL

v0.0.3

Supports grammar for WGSL, WESL as well as best-effort support for Bevy (naga_oil) extensions and uses the wgsl-analyzer LSP

Updated 3 months ago
59k downloads 30 stars Repository ↗

WGSL/WESL Zed Extension

This extension provides language support for WGSL, WESL and a best effor support for Bevy (naga_oil) extensions for the Zed editor. It uses wgsl-analyzer for the language server and tree-sitter-wesl for the tree-sitter grammar.

As wgsl-analyzer does not currently recognize all WESL syntax, errors from wgsl-analyzer are to be expected when working with WESL, related issues: #2, https://github.com/wgsl-analyzer/wgsl-analyzer/issues/632.

The syntax highlighting is heavily inspired by wgsl-analyzer vscode extension.

There already is a Zed extension for WGSL, wgsl-zed, but it uses glasgow for the LSP and tree-sitter-wgsl which is outdated and doesn't support WESL. Additionally, it lacks quality syntax highlighting and doesn't automatically download the lsp server if it's missing on your system.