Files
vscode-extension-samples/comment-sample/package.json
2019-06-26 14:55:03 -07:00

155 lines
3.0 KiB
JSON

{
"name": "vscode-comment-api-example",
"displayName": "Comment API Sample",
"description": "Comment API Sample",
"version": "0.0.1",
"publisher": "vscode-samples",
"engines": {
"vscode": "^1.35.0"
},
"enableProposedApi": true,
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "mywiki.createNote",
"title": "Create Note",
"enablement": "!commentIsEmpty"
},
{
"command": "mywiki.replyNote",
"title": "Reply",
"enablement": "!commentIsEmpty"
},
{
"command": "mywiki.editNote",
"title": "Edit",
"icon": {
"dark": "resources/edit_inverse.svg",
"light": "resources/edit.svg"
}
},
{
"command": "mywiki.deleteNote",
"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"
}
},
{
"command": "mywiki.saveNote",
"title": "Save"
},
{
"command": "mywiki.cancelsaveNote",
"title": "Cancel"
},
{
"command": "mywiki.startDraft",
"title": "Start draft",
"enablement": "!commentIsEmpty"
},
{
"command": "mywiki.finishDraft",
"title": "Finish draft"
}
],
"menus": {
"commandPalette": [
{
"command": "mywiki.createNote",
"when": "false"
},
{
"command": "mywiki.replyNote",
"when": "false"
},
{
"command": "mywiki.deleteNote",
"when": "false"
},
{
"command": "mywiki.deleteNoteComment",
"when": "false"
}
],
"comments/commentThread/title": [
{
"command": "mywiki.deleteNote",
"group": "navigation",
"when": "!commentThreadIsEmpty"
}
],
"comments/commentThread/context": [
{
"command": "mywiki.createNote",
"group": "inline",
"when": "commentThreadIsEmpty"
},
{
"command": "mywiki.replyNote",
"group": "inline",
"when": "!commentThreadIsEmpty"
},
{
"command": "mywiki.startDraft",
"group": "inline",
"when": "commentThread != draft"
},
{
"command": "mywiki.finishDraft",
"group": "inline",
"when": "commentThread == draft"
}
],
"comments/comment/title": [
{
"command": "mywiki.editNote",
"group": "group@1"
},
{
"command": "mywiki.deleteNoteComment",
"group": "group@2"
}
],
"comments/comment/context": [
{
"command": "mywiki.cancelsaveNote",
"group": "inline@1"
},
{
"command": "mywiki.saveNote",
"group": "inline@2"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "tslint -p ./"
},
"devDependencies": {
"@types/node": "^6.0.40",
"tslint": "^5.16.0",
"typescript": "^3.5.1",
"@types/vscode": "^1.32.0"
}
}