mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
165 lines
3.3 KiB
JSON
165 lines
3.3 KiB
JSON
{
|
|
"name": "custom-view-samples",
|
|
"displayName": "Custom view Samples",
|
|
"description": "Samples for VSCode's view API",
|
|
"version": "0.0.1",
|
|
"publisher": "ms-vscode",
|
|
"engines": {
|
|
"vscode": "^1.20.0"
|
|
},
|
|
"enableProposedApi": true,
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"onView:nodeDependencies",
|
|
"onView:ftpExplorer",
|
|
"onView:jsonOutline",
|
|
"onLanguage:json",
|
|
"onLanguage:jsonc"
|
|
],
|
|
"main": "./out/src/extension",
|
|
"icon": "media/dep.png",
|
|
"contributes": {
|
|
"views": {
|
|
"explorer": [
|
|
{
|
|
"id": "nodeDependencies",
|
|
"name": "Node Dependencies"
|
|
},
|
|
{
|
|
"id": "jsonOutline",
|
|
"name": "Json Outline",
|
|
"when": "jsonOutlineEnabled"
|
|
},
|
|
{
|
|
"id": "ftpExplorer",
|
|
"name": "FTP Explorer"
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "nodeDependencies.addEntry",
|
|
"title": "Add"
|
|
},
|
|
{
|
|
"command": "nodeDependencies.refreshEntry",
|
|
"title": "Refresh",
|
|
"icon": {
|
|
"light": "resources/light/refresh.svg",
|
|
"dark": "resources/dark/refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "nodeDependencies.deleteEntry",
|
|
"title": "Delete"
|
|
},
|
|
{
|
|
"command": "ftpExplorer.refresh",
|
|
"title": "Refresh",
|
|
"icon": {
|
|
"light": "resources/light/refresh.svg",
|
|
"dark": "resources/dark/refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "ftpExplorer.openFtpResource",
|
|
"title": "Open FTP Resource"
|
|
},
|
|
{
|
|
"command": "ftpExplorer.revealResource",
|
|
"title": "Reveal in FTP View"
|
|
},
|
|
{
|
|
"command": "jsonOutline.refresh",
|
|
"title": "Refresh",
|
|
"icon": {
|
|
"light": "resources/light/refresh.svg",
|
|
"dark": "resources/dark/refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "jsonOutline.refreshNode",
|
|
"title": "Refresh",
|
|
"icon": {
|
|
"light": "resources/light/refresh.svg",
|
|
"dark": "resources/dark/refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "jsonOutline.renameNode",
|
|
"title": "Rename"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "ftpExplorer.revealResource"
|
|
}
|
|
],
|
|
"view/title": [
|
|
{
|
|
"command": "jsonOutline.refresh",
|
|
"when": "view == jsonOutline",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "nodeDependencies.refreshEntry",
|
|
"when": "view == nodeDependencies",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "nodeDependencies.addEntry",
|
|
"when": "view == nodeDependencies"
|
|
},
|
|
{
|
|
"command": "ftpExplorer.refresh",
|
|
"when": "view == ftpExplorer",
|
|
"group": "navigation"
|
|
}
|
|
],
|
|
"view/item/context": [
|
|
{
|
|
"command": "nodeDependencies.deleteEntry",
|
|
"when": "view == nodeDependencies && viewItem == dependency"
|
|
},
|
|
{
|
|
"command": "jsonOutline.renameNode",
|
|
"when": "view == jsonOutline"
|
|
},
|
|
{
|
|
"command": "jsonOutline.refreshNode",
|
|
"when": "view == jsonOutline",
|
|
"group": "inline"
|
|
}
|
|
]
|
|
},
|
|
"configuration": [
|
|
{
|
|
"title": "JSON Outline",
|
|
"properties": {
|
|
"jsonOutline.autorefresh": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "tsc -p ./",
|
|
"compile": "tsc -watch -p ./",
|
|
"postinstall": "node ./node_modules/vscode/bin/install"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^2.1.4",
|
|
"vscode": "^1.0.0",
|
|
"@types/node": "*"
|
|
},
|
|
"dependencies": {
|
|
"jsonc-parser": "^0.4.2",
|
|
"ftp": "^0.3.10",
|
|
"jsftp": "^2.0.0"
|
|
}
|
|
} |