Skip to content

Visual Studio Code, rebuilt in Rust

Rust
2.2 KB
Raw Blame
{
	"name": "comments",
	"publisher": "port",
	"displayName": "Port Comments",
	"version": "0.0.1",
	"description": "A comment controller with two threads on a.ts for port/tools/ui-pair.",
	"engines": { "vscode": "^1.100.0" },
	"main": "./extension.js",
	"activationEvents": ["onStartupFinished"],
	"enabledApiProposals": ["contribCommentEditorActionsMenu", "contribCommentPeekContext", "contribCommentThreadAdditionalMenu"],
	"contributes": {
		"commands": [
			{ "command": "port-comments.reply", "title": "Reply" },
			{ "command": "port-comments.resolve", "title": "Resolve", "icon": "$(check)" },
			{ "command": "port-comments.edit", "title": "Edit", "icon": "$(edit)" },
			{ "command": "port-comments.save", "title": "Save" },
			{ "command": "port-comments.insert", "title": "Insert Note" },
			{ "command": "port-comments.copyThread", "title": "Copy Thread Link" },
			{ "command": "port-comments.copyComment", "title": "Copy Comment Link" },
			{ "command": "port-comments.markResolved", "title": "Mark Resolved" },
			{ "command": "port-comments.approve", "title": "Approve" },
			{ "command": "port-comments.requestChanges", "title": "Request Changes" }
		],
		"submenus": [{ "id": "port-comments.review", "label": "Review" }],
		"menus": {
			"comments/commentThread/context": [{ "command": "port-comments.reply", "group": "inline" }],
			"comments/commentThread/title": [{ "command": "port-comments.resolve", "group": "inline" }],
			"comments/comment/title": [{ "command": "port-comments.edit", "group": "inline", "when": "comment == editable" }],
			"comments/comment/context": [{ "command": "port-comments.save", "group": "inline" }],
			"comments/comment/editorActions": [{ "command": "port-comments.insert" }],
			"comments/commentThread/title/context": [{ "command": "port-comments.copyThread" }],
			"comments/commentThread/comment/context": [{ "command": "port-comments.copyComment" }],
			"comments/commentThread/additionalActions": [{ "command": "port-comments.markResolved", "group": "inline@1" }, { "submenu": "port-comments.review", "group": "inline@2" }],
			"port-comments.review": [{ "command": "port-comments.approve" }, { "command": "port-comments.requestChanges" }]
		}
	}
}