Chi Language
Edit Chi projects in VS Code with compiler-backed diagnostics, completions,
hover details, go to definition, semantic highlighting, and formatting for both
.x and .xs source files.
Chi has two source modes: High Chi (.x) for managed-memory application code and
System Chi (.xs) for low-level code with manual ownership. This extension
handles both.
Features
- Highlighting for Chi syntax in
.x and .xs files
- Compiler diagnostics as you edit
- Completion, including auto-import suggestions
- Hover information and signature help
- Go to definition
- Semantic highlighting
- Document formatting
Requirements
Install Chi before using the language-server features:
curl -fsSL https://chilang.dev/install.sh | sh
If the extension cannot find the Chi standard library, set one of these VS Code
settings:
{
"chiLanguageServer.chiHome": "/path/to/chi"
}
chiLanguageServer.chiHome should point to the installed Chi directory that
contains src/stdlib/.
Settings
chiLanguageServer.chiHome: path to an installed Chi tree.
chiLanguageServer.maxNumberOfProblems: maximum diagnostics reported per file.
chiLanguageServer.trace.server: LSP trace level for debugging extension issues.
Documentation
Read the Chi docs at https://chilang.dev.
Compiler source: https://github.com/haiyamicode/chi