Files

170 lines
3.7 KiB
JSON
Raw Permalink Normal View History

{
"name": "vscode-comment-api-example",
"displayName": "Comment API Sample",
"description": "Comment API Sample",
"version": "0.0.1",
"publisher": "vscode-samples",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"engines": {
"vscode": "^1.100.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "mywiki.createNote",
"title": "Create Note",
"enablement": "!commentIsEmpty"
},
{
2019-05-17 16:40:30 -07:00
"command": "mywiki.replyNote",
"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"
}
},
{
"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",
"title": "Start Draft",
"enablement": "!commentIsEmpty"
2019-05-17 18:39:54 -07:00
},
{
"command": "mywiki.finishDraft",
"title": "Finish Draft"
2019-07-19 11:07:03 -07:00
},
{
"command": "mywiki.dispose",
"title": "Remove All Notes"
}
],
"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": "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",
"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",
"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",
"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",
"group": "group@1",
"when": "commentController == comment-sample"
2019-05-17 16:40:30 -07:00
},
{
"command": "mywiki.deleteNoteComment",
"group": "group@2",
"when": "commentController == comment-sample && comment == canDelete"
}
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",
"group": "inline@1",
"when": "commentController == comment-sample"
2019-05-17 18:31:33 -07:00
},
{
"command": "mywiki.saveNote",
"group": "inline@2",
"when": "commentController == comment-sample"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
2019-05-30 18:28:15 -07:00
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
2025-08-06 23:43:14 -07:00
"@types/node": "^22",
"@types/vscode": "^1.100.0",
"eslint": "^9.13.0",
2025-08-06 23:43:14 -07:00
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
}
2025-08-06 23:43:14 -07:00
}