Schema-aware SQL diagnostics inside Zed, powered by sqlshield.
This extension is intended to be installed from Zed's Extensions panel
(zed: extensions) once published. Until then you can install it as a
dev extension:
zed: install dev extension
# point at editors/zed/ inside this repoThe extension wraps the sqlshield-lsp binary. It looks for one in this
order:
lsp.sqlshield.binary.pathin your Zed settings (absolute path).sqlshield-lsponPATH(cargo install sqlshield-lsp).- A prebuilt binary downloaded from GitHub Releases matching your platform/architecture.
The recommended path today is cargo install sqlshield-lsp; the
GitHub-release fallback only fires once the LSP project ships
prebuilt binaries.
Schema and dialect can be set under lsp.sqlshield.settings in your Zed
settings, or via a .sqlshield.toml at the workspace root. Editor
settings win per-field; the toml fills any gaps.
Valid dialect values: generic, postgres, mysql, sqlite,
mssql, snowflake, bigquery, redshift, clickhouse, duckdb,
hive, ansi.
schema is resolved relative to the workspace root (or absolute).
{ "lsp": { "sqlshield": { "settings": { "schema": "schema.sql", "dialect": "postgres" } } } }