Hylang VS Code Assets
Development reference from Hylang-Compiler. Commands and source paths on this page are relative to that repository checkout. For current task status, use the development project.
This folder contains editor support for the C++ SDK CLI (hy). The native Hydrogen CLI does not provide the required lsp, fmt, or JSON-check commands.
- syntax highlighting for
.hyand.hyproj - snippets for common Hylang scaffolds
- task templates for
hy check,hy fmt, andhy test - a launch template for
hy run - a small extension entrypoint that starts
hy lsp - a Node wrapper that turns
hy check --jsonoutput into VS Code problem-matcher lines as a fallback task path
To load the extension in a VS Code development host, run from the compiler repository root:
code --extensionDevelopmentPath="$PWD/tools/vscode/hylang" "$PWD"To configure a compiler checkout:
- Copy
templates/tasks.json,templates/launch.json, andtemplates/settings.jsoninto your workspace.vscode/folder. - Open the repo root as your VS Code workspace so the task template can find
tools/vscode/hylang/bin/hy-check-json.js. - Put
hyon yourPATHfor the format/test/run templates, or edit their commands to point tobuild/hy. The check wrapper usesHYLANG_BIN, then the repository’sbuild/hy, thenPATH. The LSP launcher usesHYLANG_BINorhylang.hyPath; that setting does not change task commands. - Use the check task for diagnostics and the format task to format sources. The extension entrypoint starts
hy lsp, but does not yet connect VS Code language providers to its JSON-RPC stream.
The hy lsp server supports diagnostics, symbols, hover, and formatting for a client that implements its protocol. The included extension currently supplies highlighting/snippets and starts the process; it is not a complete LSP client. The settings template expresses format-on-save intent, but the extension does not yet register a formatter, so use hy fmt or the task. Completion, go-to-definition, references, rename, semantic tokens, and full workspace indexing are not implemented.