GFramework/tools/vscode-config-extension
GeWuYou 0c662ced2a feat(game): 添加游戏内容配置系统和VS Code插件支持
- 实现YAML配置文件管理和JSON Schema验证功能
- 提供运行时只读查询和Source Generator代码生成功能
- 开发VS Code插件实现配置浏览、校验和轻量表单编辑
- 支持开发期热重载和配置变更自动刷新机制
- 集成诊断功能提供配置文件错误提示和修复建议
2026-03-31 22:49:10 +08:00
..

GFramework Config Tools

Minimal VS Code extension scaffold for the GFramework AI-First config workflow.

Current MVP

  • Browse config files from the workspace config/ directory
  • Open raw YAML files
  • Open matching schema files from schemas/
  • Run lightweight schema validation for required fields, unknown top-level fields, scalar types, and scalar array items
  • Open a lightweight form preview for top-level scalar fields and top-level scalar arrays

Validation Coverage

The extension currently validates the repository's minimal config-schema subset:

  • required top-level properties
  • unknown top-level properties
  • scalar compatibility for integer, number, boolean, and string
  • top-level scalar arrays with scalar item type checks

Nested objects and complex arrays should still be reviewed in raw YAML.

Local Testing

cd tools/vscode-config-extension
node --test ./test/*.test.js

Current Constraints

  • Multi-root workspaces use the first workspace folder
  • Validation only covers a minimal subset of JSON Schema
  • Form editing currently supports top-level scalar fields and top-level scalar arrays
  • Nested objects and complex arrays should still be edited in raw YAML

Workspace Settings

  • gframeworkConfig.configPath
  • gframeworkConfig.schemasPath