GeWuYou 94f0f536ea feat(config): 添加游戏内容配置系统和VS Code工具
- 实现YAML配置源文件和JSON Schema结构描述
- 提供一对象一文件的目录组织方式
- 集成Source Generator生成配置类型和表包装
- 开发VS Code插件支持配置浏览和编辑功能
- 实现运行时只读查询和热重载机制
- 添加跨表引用校验和批量编辑入口
2026-04-02 21:29:07 +08:00

140 lines
3.8 KiB
JSON

{
"name": "gframework-config-tool",
"displayName": "%extension.displayName%",
"description": "%extension.description%",
"version": "0.0.3",
"publisher": "GeWuYou",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/GeWuYou/GFramework.git",
"directory": "tools/gframework-config-tool"
},
"homepage": "https://github.com/GeWuYou/GFramework/tree/main/tools/gframework-config-tool",
"bugs": {
"url": "https://github.com/GeWuYou/GFramework/issues"
},
"packageManager": "bun@1.2.15",
"keywords": [
"gframework",
"config",
"yaml",
"json-schema",
"game-dev"
],
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:gframeworkConfigExplorer",
"onCommand:gframeworkConfig.refresh",
"onCommand:gframeworkConfig.openRaw",
"onCommand:gframeworkConfig.openSchema",
"onCommand:gframeworkConfig.openFormPreview",
"onCommand:gframeworkConfig.batchEditDomain",
"onCommand:gframeworkConfig.validateAll"
],
"main": "./src/extension.js",
"scripts": {
"test": "node --test ./test/*.test.js",
"package:vsix": "vsce package",
"publish:marketplace": "vsce publish"
},
"devDependencies": {
"@vscode/vsce": "^3.7.1"
},
"vsce": {
"yarn": false
},
"contributes": {
"views": {
"explorer": [
{
"id": "gframeworkConfigExplorer",
"name": "%view.gframeworkConfig.name%"
}
]
},
"commands": [
{
"command": "gframeworkConfig.refresh",
"title": "%command.refresh.title%"
},
{
"command": "gframeworkConfig.openRaw",
"title": "%command.openRaw.title%"
},
{
"command": "gframeworkConfig.openSchema",
"title": "%command.openSchema.title%"
},
{
"command": "gframeworkConfig.openFormPreview",
"title": "%command.openFormPreview.title%"
},
{
"command": "gframeworkConfig.batchEditDomain",
"title": "%command.batchEditDomain.title%"
},
{
"command": "gframeworkConfig.validateAll",
"title": "%command.validateAll.title%"
}
],
"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"
},
{
"command": "gframeworkConfig.batchEditDomain",
"when": "view == gframeworkConfigExplorer && viewItem == domain",
"group": "navigation"
}
]
},
"configuration": {
"title": "%configuration.title%",
"properties": {
"gframeworkConfig.configPath": {
"type": "string",
"default": "config",
"description": "%configuration.configPath.description%"
},
"gframeworkConfig.schemasPath": {
"type": "string",
"default": "schemas",
"description": "%configuration.schemasPath.description%"
}
}
}
}
}