2019-03-29 19:31:06 +01:00
|
|
|
{
|
2019-05-29 09:51:23 -07:00
|
|
|
"name": "vscode-comment-api-example",
|
|
|
|
|
"displayName": "Comment API Sample",
|
|
|
|
|
"description": "Comment API Sample",
|
2019-03-29 19:31:06 +01:00
|
|
|
"version": "0.0.1",
|
|
|
|
|
"publisher": "vscode-samples",
|
|
|
|
|
"engines": {
|
2019-05-23 09:44:54 -07:00
|
|
|
"vscode": "^1.35.0"
|
2019-03-29 19:31:06 +01:00
|
|
|
},
|
|
|
|
|
"enableProposedApi": true,
|
|
|
|
|
"categories": [
|
|
|
|
|
"Other"
|
|
|
|
|
],
|
|
|
|
|
"activationEvents": [
|
|
|
|
|
"*"
|
|
|
|
|
],
|
|
|
|
|
"main": "./out/extension.js",
|
|
|
|
|
"contributes": {
|
|
|
|
|
"commands": [
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.createNote",
|
2019-05-29 09:51:23 -07:00
|
|
|
"title": "Create Note",
|
|
|
|
|
"enablement": "!commentIsEmpty"
|
2019-03-29 19:31:06 +01:00
|
|
|
},
|
|
|
|
|
{
|
2019-05-17 16:40:30 -07:00
|
|
|
"command": "mywiki.replyNote",
|
2019-05-29 09:51:23 -07:00
|
|
|
"title": "Reply",
|
|
|
|
|
"enablement": "!commentIsEmpty"
|
2019-05-17 16:40:30 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.editNote",
|
|
|
|
|
"title": "Edit",
|
2019-05-31 11:51:11 -07:00
|
|
|
"icon": {
|
2019-05-17 16:40:30 -07:00
|
|
|
"dark": "resources/edit_inverse.svg",
|
|
|
|
|
"light": "resources/edit.svg"
|
|
|
|
|
}
|
2019-03-29 19:31:06 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.deleteNote",
|
2019-05-17 16:40:30 -07:00
|
|
|
"title": "Delete",
|
2019-05-31 11:51:11 -07:00
|
|
|
"icon": {
|
2019-05-17 16:40:30 -07:00
|
|
|
"dark": "resources/close_inverse.svg",
|
|
|
|
|
"light": "resources/close.svg"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.deleteNoteComment",
|
|
|
|
|
"title": "Delete",
|
2019-05-31 11:51:11 -07:00
|
|
|
"icon": {
|
2019-05-17 16:40:30 -07:00
|
|
|
"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",
|
2019-10-16 09:48:43 -07:00
|
|
|
"title": "Start Draft",
|
2019-05-29 09:51:23 -07:00
|
|
|
"enablement": "!commentIsEmpty"
|
2019-05-17 18:39:54 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.finishDraft",
|
2019-10-16 09:48:43 -07:00
|
|
|
"title": "Finish Draft"
|
2019-07-19 11:07:03 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.dispose",
|
|
|
|
|
"title": "Remove All Notes"
|
2019-03-29 19:31:06 +01:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"menus": {
|
|
|
|
|
"commandPalette": [
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.createNote",
|
|
|
|
|
"when": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-05-17 16:40:30 -07:00
|
|
|
"command": "mywiki.replyNote",
|
2019-03-29 19:31:06 +01:00
|
|
|
"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",
|
2019-10-16 09:48:43 -07:00
|
|
|
"when": "commentController == comment-sample && !commentThreadIsEmpty"
|
2019-05-17 16:40:30 -07:00
|
|
|
}
|
|
|
|
|
],
|
2019-05-23 09:21:34 -07:00
|
|
|
"comments/commentThread/context": [
|
2019-05-17 16:40:30 -07:00
|
|
|
{
|
|
|
|
|
"command": "mywiki.createNote",
|
2019-05-23 09:21:34 -07:00
|
|
|
"group": "inline",
|
2019-10-16 09:48:43 -07:00
|
|
|
"when": "commentController == comment-sample && commentThreadIsEmpty"
|
2019-05-17 16:40:30 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.replyNote",
|
2019-05-23 09:21:34 -07:00
|
|
|
"group": "inline",
|
2019-10-16 09:48:43 -07:00
|
|
|
"when": "commentController == comment-sample && !commentThreadIsEmpty"
|
2019-05-17 18:36:36 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.startDraft",
|
2019-05-23 09:21:34 -07:00
|
|
|
"group": "inline",
|
2019-10-16 09:48:43 -07:00
|
|
|
"when": "commentController == comment-sample && commentThreadIsEmpty"
|
2019-05-17 18:39:54 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.finishDraft",
|
2019-05-23 09:21:34 -07:00
|
|
|
"group": "inline",
|
2019-10-16 11:53:12 -07:00
|
|
|
"when": "commentController == comment-sample && commentThread == draft"
|
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",
|
2019-10-16 09:48:43 -07:00
|
|
|
"group": "group@1",
|
|
|
|
|
"when": "commentController == comment-sample"
|
2019-05-17 16:40:30 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.deleteNoteComment",
|
2019-10-16 09:48:43 -07:00
|
|
|
"group": "group@2",
|
|
|
|
|
"when": "commentController == comment-sample && comment == canDelete"
|
2019-03-29 19:31:06 +01:00
|
|
|
}
|
2019-05-17 18:31:33 -07:00
|
|
|
],
|
2019-05-23 09:21:34 -07:00
|
|
|
"comments/comment/context": [
|
2019-05-17 18:31:33 -07:00
|
|
|
{
|
|
|
|
|
"command": "mywiki.cancelsaveNote",
|
2019-10-16 09:48:43 -07:00
|
|
|
"group": "inline@1",
|
|
|
|
|
"when": "commentController == comment-sample"
|
2019-05-17 18:31:33 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"command": "mywiki.saveNote",
|
2019-10-16 09:48:43 -07:00
|
|
|
"group": "inline@2",
|
|
|
|
|
"when": "commentController == comment-sample"
|
2019-03-29 19:31:06 +01:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"scripts": {
|
|
|
|
|
"vscode:prepublish": "npm run compile",
|
2019-05-30 18:28:15 -07:00
|
|
|
"compile": "tsc -p ./",
|
2019-03-29 19:31:06 +01:00
|
|
|
"watch": "tsc -watch -p ./",
|
2020-05-29 13:12:13 -07:00
|
|
|
"lint": "eslint . --ext .ts,.tsx"
|
2019-03-29 19:31:06 +01:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2020-04-14 18:01:21 -07:00
|
|
|
"@types/node": "^12.12.0",
|
2021-03-02 16:02:01 -08:00
|
|
|
"@types/vscode": "^1.35.0",
|
2021-03-02 15:59:42 -08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.16.0",
|
|
|
|
|
"@typescript-eslint/parser": "^4.16.0",
|
|
|
|
|
"eslint": "^7.21.0",
|
2021-06-11 17:00:34 -07:00
|
|
|
"typescript": "^4.3.2"
|
2019-03-29 19:31:06 +01:00
|
|
|
}
|
2019-05-10 15:23:49 -07:00
|
|
|
}
|