Generate and repair CityEngine CGA from natural-language prompts.
Install / 安装
Download nl2cga-0.1.0.vsix and install with Extensions: Install from VSIX..., or run code --install-extension nl2cga-0.1.0.vsix.
Run NL2CGA: Set API Key and paste your gateway key. The key is stored in VS Code SecretStorage, not in settings or output logs.
Optional: set nl2cga.endpoint (default: https://cga.cityvistion.com).
Commands / 命令
NL2CGA: Generate CGA — enter a Chinese or English description. CGA opens in a new untitled plaintext document; if there is a selection in a saved editor, it is replaced.
NL2CGA: Repair CGA — open CGA, describe the defect, then choose whether to replace the document or open the repaired result.
The status bar shows the last result and job ID. The NL2CGA output channel records redacted request/response summaries; it never records API keys.
Limitations / 限制
Requires a valid gateway key and network access. Repair is API-assisted and is presented as a replace/open choice rather than a graphical diff in v1.