VS Code
Install
Section titled “Install”- Install the Jiang CLI and verify
jiang --versionin a terminal. - Install the Jiang Language extension from the VS Code Extensions view.
- Open your project folder and a
.jiangfile.
The extension starts the persistent language server using jiang lsp.
Compiler Path
Section titled “Compiler Path”If jiang is on VS Code’s PATH, no path configuration is needed.
Otherwise, open Settings, search for Jiang Server Path, and select the installed CLI executable
or its bin directory. You can also edit settings.json:
A value such as /Users/you/.jiang/bin is also accepted. Use the CLI location; no compiler source
checkout or language root directory is required.
Features
Section titled “Features”- Diagnostics for opened source files.
- Hover with types, function signatures, and declaration documentation.
- Go to Definition from the context menu.
- Completion for identifiers, members, extension members, and namespace declarations.
- Enum case completion after
.in local variable declarations with an explicit enum type.
Editing prioritizes checks for the current file. Saving runs complete checking, including ownership diagnostics.
Use /// or a multiline #doc block to document declarations; see
Documentation Comments.
The compiler provides these language features. After upgrading Jiang, run Developer: Reload Window in VS Code to restart the language server. Compiler upgrades provide the corresponding LSP features without requiring an extension update.
Troubleshooting
Section titled “Troubleshooting”If the client cannot connect, check that Jiang Server Path points to an executable with lsp
support. Inspect the Jiang Language Server channel in the Output panel for server messages.