Commit e5d6a27
feat(zed): add Zed extension wrapping sqlshield-lsp
A native Zed extension under editors/zed/. Compiles to wasm32-wasip1
via zed_extension_api 0.7.0 and registers a `sqlshield` language
server attached to SQL, Python, Rust, Go, JS/JSX, and TS/TSX buffers.
Binary discovery is layered: explicit `lsp.sqlshield.binary.path` →
`sqlshield-lsp` on PATH (the cargo install path) → a GitHub-release
download keyed by `(platform, arch)`. The release-download path is
guarded by an `sqlshield-lsp-v*` tag check so it won't grab assets
from a sibling crate's tag.
Workspace-configuration hook forwards `lsp.sqlshield.settings` to the
LSP unchanged, so the same `schema` / `dialect` knobs that already
work in VS Code work here too — server-side merging with
.sqlshield.toml is unchanged.
The crate is excluded from the main Cargo workspace because it
targets wasm32-wasip1 and pulls in zed_extension_api, which would
otherwise interfere with native cargo build/test/clippy.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 72bab80 commit e5d6a27
7 files changed
Lines changed: 1098 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
0 commit comments