Add IDE integration: VS Code extension, LSP design and prototype - #10
Merged
Conversation
A VS Code extension for authoring azazel project.cue: a CUE syntax grammar that highlights the #Module fields and their enum values, inline diagnostics that run `cue export -e build` (the same command gen_build_spec.sh uses) on open and save and surface errors inline, and an "Azazel: Generate build_spec" command. Plain JavaScript, no npm dependencies. Plus ide/DESIGN.md for a language server (completion, hover, go-to-definition, and the two graph cross-checks cue cannot do), and a dependency-free stdio LSP prototype in ide/server that publishes cue diagnostics over JSON-RPC. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
First increment of IDE tooling for authoring azazel
project.cue, in a newide/directory.VS Code extension (
ide/vscode/, plain JS, no npm deps):#Modulefields (kind,root,deps,profile,link) and their enum values.cue export -e buildon open and save, surfaces errors inline (bad enums, wrong types, unknown/missing fields). Missing-field errors cue can only pin toschema.cueare re-homed onto the edited file.Language server (
ide/DESIGN.md+ide/server/):schema.cue, hover docs, go-to-definition fordeps, and the two graph cross-checks (adepsnaming an unknown module; a module absent fromexport.cue's_modules).Verification
node --checkon all JS,JSON.parseon all manifests: pass.ide/vscode/README.md.Follow-ups
Implement completion/hover/go-to-definition per DESIGN.md; add the graph cross-checks; optionally wire the extension to the LSP via vscode-languageclient once those exist.
🤖 Generated with Claude Code