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",
|
2021-06-11 17:10:40 -07:00
|
|
|
"private": true,
|
|
|
|
|
"license": "MIT",
|
|
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
|
|
|
|
"url": "https://github.com/Microsoft/vscode-extension-samples"
|
|
|
|
|
},
|
2019-03-29 19:31:06 +01:00
|
|
|
"engines": {
|
2022-04-14 06:06:06 -04:00
|
|
|
"vscode": "^1.65.0"
|
2019-03-29 19:31:06 +01:00
|
|
|
},
|
|
|
|
|
"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 ./",
|
2022-11-04 13:52:32 -07:00
|
|
|
"lint": "eslint \"src/**/*.ts\""
|
2019-03-29 19:31:06 +01:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2022-05-24 15:12:22 -07:00
|
|
|
"@types/node": "^16.11.7",
|
2022-04-14 06:06:06 -04:00
|
|
|
"@types/vscode": "~1.65.0",
|
2022-11-04 13:52:32 -07:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
|
|
|
"@typescript-eslint/parser": "^5.42.0",
|
|
|
|
|
"eslint": "^8.26.0",
|
2022-09-27 15:01:41 -07:00
|
|
|
"typescript": "^4.8.4"
|
2019-03-29 19:31:06 +01:00
|
|
|
}
|
2019-05-10 15:23:49 -07:00
|
|
|
}
|