Files
squirrelVsis/package.json
2026-01-21 16:57:53 +08:00

158 lines
4.0 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"name": "squirrel-nut-explorer",
"displayName": "Squirrel NUT Explorer",
"description": "通过 pvfUtility API 浏览和编辑 NUT 文件",
"version": "1.1.5",
"publisher": "local",
"engines": {
"vscode": "^1.99.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"icon": "media/icon.png",
"main": "./dist/extension.js",
"repository": {
"type": "git",
"url": "https://github.com/yourusername/squirrel-nut-explorer.git"
},
"contributes": {
"languages": [
{
"id": "squirrel",
"aliases": ["Squirrel", "squirrel"],
"extensions": [".nut"],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "squirrel",
"scopeName": "source.squirrel",
"path": "./syntaxes/squirrel.tmLanguage.json"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "squirrelExplorer",
"title": "Squirrel",
"icon": "media/icon.png"
}
]
},
"views": {
"squirrelExplorer": [
{
"id": "squirrelExplorerView",
"name": "",
"icon": "codicon-archive"
}
]
},
"commands": [
{
"command": "squirrel.openApiDocs",
"title": "打开库函数文档",
"icon": "$(book)"
},
{
"command": "squirrel.openFile",
"title": "打开文件",
"icon": "$(open-file)"
},
{
"command": "squirrel.connectToApi",
"title": "连接到 pvfUtility"
}
],
"menus": {
"view/title": [
{
"command": "squirrel.connectToApi",
"when": "view == squirrelExplorerView",
"group": "navigation@0"
},
{
"command": "squirrel.openApiDocs",
"when": "view == squirrelExplorerView",
"group": "navigation@1"
}
],
"view/item/context": [
{
"command": "squirrel.openFile",
"when": "view == squirrelExplorerView",
"group": "navigation@1"
}
]
},
"configuration": {
"title": "Squirrel NUT Explorer",
"properties": {
"squirrel.api.baseUrl": {
"type": "string",
"default": "http://localhost",
"description": "pvfUtility API 基础 URL"
},
"squirrel.api.port": {
"type": "number",
"default": 27000,
"description": "pvfUtility API 端口"
},
"squirrel.defaultDirectory": {
"type": "string",
"default": "sqr",
"description": "默认要浏览的目录名称"
},
"squirrel.nutEncoding": {
"type": "string",
"default": "UTF8",
"description": "NUT文件内容编码类型",
"enum": ["Null", "TW", "CN", "KR", "JP", "UTF8", "Unicode"],
"enumDescriptions": [
"默认(UTF8)",
"中国台湾",
"中国大陆",
"韩国",
"日本",
"UTF-8",
"Unicode"
]
},
"squirrel.localServicePort": {
"type": "number",
"default": 26000,
"description": "本地C++服务端口用于发送保存的NUT文件"
},
"squirrel.autoFormatOnType": {
"type": "boolean",
"default": false,
"description": "是否在编辑时自动格式化代码"
},
"squirrel.formatting.wrapLineLength": {
"type": "number",
"default": 0,
"description": "代码格式化时的最大行长度,超过此长度会自动换行。设置为 0 表示禁用自动换行",
"minimum": 0,
"maximum": 500
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"build": "npm run compile",
"vscode:prepublish": "npm run build"
},
"devDependencies": {
"@types/node": "^20.19.11",
"@types/vscode": "^1.99.0",
"typescript": "^5.9.2"
},
"dependencies": {}
}