GeWuYou 6df348fb4e feat(config-tool): 添加 VS Code 扩展实现配置文件管理功能
- 根据 VS Code 当前界面语言在英文和简体中文之间切换主要工具界面文本
- 实现配置验证消息的本地化支持,包括数组、标量、枚举等类型的错误提示
- 添加完整的 VS Code 扩展框架,支持配置文件浏览、验证和表单预览
- 实现批量编辑功能,支持对同一配置域内的多个 YAML 文件执行字段更新
- 集成诊断功能,在编辑器中显示配置验证错误和警告
- 提供树形视图展示配置目录结构和文件列表
2026-04-02 20:45:02 +08:00

140 lines
3.8 KiB
JSON

{
"name": "gframework-config-tool",
"displayName": "%extension.displayName%",
"description": "%extension.description%",
"version": "0.0.2",
"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%"
}
}
}
}
}