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": {
|
2025-08-07 07:57:14 -07:00
|
|
|
"vscode": "^1.100.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 ./",
|
2024-10-26 17:44:03 -07:00
|
|
|
"lint": "eslint"
|
2019-03-29 19:31:06 +01:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2024-10-26 17:44:03 -07:00
|
|
|
"@eslint/js": "^9.13.0",
|
|
|
|
|
"@stylistic/eslint-plugin": "^2.9.0",
|
2025-08-06 23:43:14 -07:00
|
|
|
"@types/node": "^22",
|
2025-08-07 07:57:14 -07:00
|
|
|
"@types/vscode": "^1.100.0",
|
2024-10-26 17:44:03 -07:00
|
|
|
"eslint": "^9.13.0",
|
2025-08-06 23:43:14 -07:00
|
|
|
"typescript": "^5.9.2",
|
|
|
|
|
"typescript-eslint": "^8.39.0"
|
2019-03-29 19:31:06 +01:00
|
|
|
}
|
2025-08-06 23:43:14 -07:00
|
|
|
}
|