Files
vscode-extension-samples/comment-sample/package.json

157 lines
3.1 KiB
JSON
Raw Normal View History

{
"name": "vscode-terminal-api-example",
"displayName": "vscode-terminal-api-example",
"description": "abc",
"version": "0.0.1",
"publisher": "vscode-samples",
"engines": {
"vscode": "^1.32.0"
},
"enableProposedApi": true,
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "mywiki.createNote",
2019-05-17 16:40:30 -07:00
"title": "Create Note"
},
{
2019-05-17 16:40:30 -07:00
"command": "mywiki.replyNote",
"title": "Reply"
},
{
"command": "mywiki.editNote",
"title": "Edit",
"icon":{
"dark": "resources/edit_inverse.svg",
"light": "resources/edit.svg"
}
},
{
"command": "mywiki.deleteNote",
2019-05-17 16:40:30 -07:00
"title": "Delete",
"icon":{
"dark": "resources/close_inverse.svg",
"light": "resources/close.svg"
}
},
{
"command": "mywiki.deleteNoteComment",
"title": "Delete",
"icon":{
"dark": "resources/close_inverse.svg",
"light": "resources/close.svg"
}
2019-05-17 18:31:33 -07:00
},
{
"command": "mywiki.saveNote",
"title": "Save"
},
{
"command": "mywiki.cancelsaveNote",
"title": "Cancel"
2019-05-17 18:36:36 -07:00
},
{
"command": "mywiki.startDraft",
"title": "Start draft"
2019-05-17 18:39:54 -07:00
},
{
"command": "mywiki.finishDraft",
"title": "Finish draft"
}
],
"menus": {
"commandPalette": [
{
"command": "mywiki.createNote",
"when": "false"
},
{
2019-05-17 16:40:30 -07:00
"command": "mywiki.replyNote",
"when": "false"
},
{
"command": "mywiki.deleteNote",
"when": "false"
2019-05-17 16:40:30 -07:00
},
{
"command": "mywiki.deleteNoteComment",
"when": "false"
}
],
2019-05-21 12:03:32 -07:00
"comments/commentThread/title": [
2019-05-17 16:40:30 -07:00
{
"command": "mywiki.deleteNote",
"group": "navigation",
"when": "!commentThreadIsEmpty"
}
],
2019-05-21 12:03:32 -07:00
"comments/commentThread/actions": [
2019-05-17 16:40:30 -07:00
{
"command": "mywiki.createNote",
"group": "navigation",
2019-05-21 12:03:32 -07:00
"precondition": "!commentIsEmpty",
2019-05-17 16:40:30 -07:00
"when": "commentThreadIsEmpty"
},
{
"command": "mywiki.replyNote",
"group": "navigation",
2019-05-21 12:03:32 -07:00
"precondition": "!commentIsEmpty",
2019-05-17 16:40:30 -07:00
"when": "!commentThreadIsEmpty"
2019-05-17 18:36:36 -07:00
},
{
"command": "mywiki.startDraft",
2019-05-17 18:39:54 -07:00
"group": "navigation",
2019-05-21 12:03:32 -07:00
"precondition": "!commentIsEmpty",
2019-05-17 18:39:54 -07:00
"when": "!inDraft"
},
{
"command": "mywiki.finishDraft",
"group": "navigation",
"when": "inDraft"
2019-05-17 16:40:30 -07:00
}
],
2019-05-21 12:03:32 -07:00
"comments/comment/title": [
2019-05-17 16:40:30 -07:00
{
"command": "mywiki.editNote",
"group": "group@1"
},
{
"command": "mywiki.deleteNoteComment",
"group": "group@2"
}
2019-05-17 18:31:33 -07:00
],
2019-05-21 12:03:32 -07:00
"comments/comment/actions": [
2019-05-17 18:31:33 -07:00
{
"command": "mywiki.cancelsaveNote",
"group": "group@1"
},
{
"command": "mywiki.saveNote",
"group": "group@2"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "tslint ./src/*.ts",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/node": "^6.0.40",
"tslint": "^5.11.0",
"typescript": "^2.0.3",
"vscode": "^1.1.22"
}
}