You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.6 KiB
JSON

{
"name": "ai-chat",
"displayName": "AI Chat",
"description": "Open an AI chat webview panel from the status bar",
"version": "0.0.1",
"publisher": "your-publisher",
"main": "./out/extension.js",
"engines": {
"vscode": "^1.60.0"
},
"activationEvents": [
"*",
"onCommand:ai-chat.openWebview",
"onView:ai-chat-sidebar-view"
],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "ai-chat",
"title": "AI Chat",
"icon": "media/icon.png"
}
]
},
"views": {
"ai-chat": [
{
"id": "ai-chat-sidebar-view",
"name": "AI Chat",
"type": "webview"
}
]
},
"menus": {
"editor/context": [
{
"command": "extension.addToChat",
"when": "editorHasSelection",
"group": "navigation"
}
]
},
"commands": [
{
"command": "ai-chat.openWebview",
"title": "Open AI Chat"
},
{
"command": "extension.addToChat",
"title": "添加至对话"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -w -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/vscode": "^1.60.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"eslint": "^8.28.0",
"typescript": "^4.9.4"
},
"dependencies": {
"diff": "^8.0.2",
"highlight.js": "^11.11.1",
"marked": "^16.1.1"
}
}