mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
feat: add JSON Schema validation for VS Code settings
Add JSON Schema generation for settings.json files to provide IntelliSense and validation support in VS Code. The schema is automatically generated from the internal SETTINGS_SCHEMA definition during the build process. - Add generate-settings-schema.ts script to convert TypeScript schema to JSON Schema - Add jsonValidation contribution to vscode-ide-companion package.json - Include schemas directory in .vscodeignore for packaging - Integrate schema generation into build process Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
aefea076b0
commit
01c66ca333
6 changed files with 738 additions and 0 deletions
|
|
@ -54,6 +54,15 @@ for (const workspace of buildOrder) {
|
|||
stdio: 'inherit',
|
||||
cwd: root,
|
||||
});
|
||||
|
||||
// After cli is built, generate the JSON Schema for settings
|
||||
// so the vscode-ide-companion extension can provide IntelliSense
|
||||
if (workspace === 'packages/cli') {
|
||||
execSync('npx tsx scripts/generate-settings-schema.ts', {
|
||||
stdio: 'inherit',
|
||||
cwd: root,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// also build container image if sandboxing is enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue