Files
vscode-extension-samples/tree-view-sample/package.json
2018-01-10 10:44:06 +01:00

136 lines
2.7 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.13.0"
},
"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": "openFtpResource",
"title": "Open FTP Resource"
},
{
"command": "jsonOutline.refresh",
"title": "Refresh",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "jsonOutline.refreshNode",
"title": "Refresh"
},
{
"command": "jsonOutline.renameNode",
"title": "Rename"
}
],
"menus": {
"view/title": [
{
"command": "jsonOutline.refresh",
"when": "view == jsonOutline",
"group": "navigation"
},
{
"command": "nodeDependencies.refreshEntry",
"when": "view == nodeDependencies",
"group": "navigation"
},
{
"command": "nodeDependencies.addEntry",
"when": "view == nodeDependencies"
}
],
"view/item/context": [
{
"command": "nodeDependencies.deleteEntry",
"when": "view == nodeDependencies && viewItem == dependency"
},
{
"command": "jsonOutline.renameNode",
"when": "view == jsonOutline"
},
{
"command": "jsonOutline.refreshNode",
"when": "view == jsonOutline"
}
]
},
"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"
}
}