CHance Language Support
Language tooling for the CHance ecosystem (.ce, .ceproj, .cclib) used by CEnhanced.
Features
- Syntax highlighting for CHance source (
.ce)
- Dedicated syntax highlighting for CHance project files (
.ceproj)
- File icons for
.ce, .ceproj, and .cclib
- Lightweight language server diagnostics and symbol support
- Command: CHance: Select Project (.ceproj)
- Custom readonly
.cclib editor that renders a parsed tree:
- modules
- functions (with flags/signatures)
- structs (fields + offsets)
- enums (values)
- globals
Language IDs
chance for .ce
chance-project for .ceproj
chance-library for .cclib
Settings
chance.compilerPath (default: chancec)
chance.useProjectDiagnostics (default: true)
chance.mergeLightweightDiagnostics (default: false)
Usage
- Open a CHance workspace.
- Open any
.ce file to activate language features.
- Run CHance: Select Project (.ceproj) if multiple project files exist.
- Open a
.cclib file to view the parsed CCLIB tree editor.
Development
npm install
npm run compile
- Use
npm run watch for incremental rebuild.
- Press
F5 in VS Code to launch an Extension Development Host.
Release (Marketplace)
- Ensure version in
package.json is updated.
- Build extension:
npm run compile.
- Package locally (if
vsce installed): npx @vscode/vsce package.
- Publish (with publisher PAT configured):
npx @vscode/vsce publish.
License
This extension is distributed under the terms in LICENSE.
| |