1.0.0 初始版
This commit is contained in:
146
package.json
Normal file
146
package.json
Normal file
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"name": "squirrel-nut-explorer",
|
||||
"displayName": "Squirrel NUT Explorer",
|
||||
"description": "通过 pvfUtility API 浏览和编辑 NUT 文件",
|
||||
"version": "1.0.0",
|
||||
"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.refreshFiles",
|
||||
"title": "刷新文件列表",
|
||||
"icon": "$(refresh)"
|
||||
},
|
||||
{
|
||||
"command": "squirrel.openFile",
|
||||
"title": "打开文件",
|
||||
"icon": "$(open-file)"
|
||||
},
|
||||
{
|
||||
"command": "squirrel.saveFile",
|
||||
"title": "保存文件",
|
||||
"icon": "$(save)"
|
||||
},
|
||||
{
|
||||
"command": "squirrel.connectToApi",
|
||||
"title": "连接到 pvfUtility"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"view/title": [
|
||||
{
|
||||
"command": "squirrel.connectToApi",
|
||||
"when": "view == squirrelExplorerView",
|
||||
"group": "navigation@0"
|
||||
},
|
||||
{
|
||||
"command": "squirrel.refreshFiles",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {}
|
||||
}
|
||||
Reference in New Issue
Block a user