GeWuYou e8d0ea2daf feat(game): 添加游戏内容配置系统和VS Code扩展
- 引入基于YAML和JSON Schema的静态内容配置系统
- 实现运行时只读查询和Source Generator支持
- 提供VS Code扩展用于配置浏览、验证和轻量编辑
- 支持开发期热重载和跨表引用校验功能
- 包含完整的文档说明和工具链集成
2026-03-31 22:44:58 +08:00

105 lines
3.0 KiB
JSON

{
"name": "gframework-config-extension",
"displayName": "GFramework Config Tools",
"description": "Workspace tools for browsing, validating, and editing AI-First config files in GFramework projects.",
"version": "0.0.1",
"publisher": "gewuyou",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:gframeworkConfigExplorer",
"onCommand:gframeworkConfig.refresh",
"onCommand:gframeworkConfig.openRaw",
"onCommand:gframeworkConfig.openSchema",
"onCommand:gframeworkConfig.openFormPreview",
"onCommand:gframeworkConfig.validateAll"
],
"main": "./src/extension.js",
"scripts": {
"test": "node --test ./test/*.test.js"
},
"contributes": {
"views": {
"explorer": [
{
"id": "gframeworkConfigExplorer",
"name": "GFramework Config"
}
]
},
"commands": [
{
"command": "gframeworkConfig.refresh",
"title": "GFramework Config: Refresh"
},
{
"command": "gframeworkConfig.openRaw",
"title": "GFramework Config: Open Raw File"
},
{
"command": "gframeworkConfig.openSchema",
"title": "GFramework Config: Open Schema"
},
{
"command": "gframeworkConfig.openFormPreview",
"title": "GFramework Config: Open Form Preview"
},
{
"command": "gframeworkConfig.validateAll",
"title": "GFramework Config: Validate All"
}
],
"menus": {
"view/title": [
{
"command": "gframeworkConfig.refresh",
"when": "view == gframeworkConfigExplorer",
"group": "navigation"
},
{
"command": "gframeworkConfig.validateAll",
"when": "view == gframeworkConfigExplorer",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "gframeworkConfig.openRaw",
"when": "view == gframeworkConfigExplorer && viewItem == gframeworkConfigFile",
"group": "inline"
},
{
"command": "gframeworkConfig.openSchema",
"when": "view == gframeworkConfigExplorer && viewItem == gframeworkConfigFile",
"group": "navigation"
},
{
"command": "gframeworkConfig.openFormPreview",
"when": "view == gframeworkConfigExplorer && viewItem == gframeworkConfigFile",
"group": "navigation"
}
]
},
"configuration": {
"title": "GFramework Config",
"properties": {
"gframeworkConfig.configPath": {
"type": "string",
"default": "config",
"description": "Relative path from the workspace root to the config directory."
},
"gframeworkConfig.schemasPath": {
"type": "string",
"default": "schemas",
"description": "Relative path from the workspace root to the schema directory."
}
}
}
}
}