{ "name": "ai-chat", "displayName": "AI Chat", "description": "Open an AI chat webview panel from the status bar", "version": "0.0.2", "publisher": "your-publisher", "main": "./out/extension.js", "engines": { "vscode": "^1.60.0" }, "activationEvents": [ "*", "onCommand:ai-chat.openWebview", "onView:ai-chat-sidebar-view" ], "contributes": { "configuration": { "type": "object", "title": "AI Chat Configuration", "properties": { "ai-chat.api.url": { "type": "string", "description": "完整的API地址(优先级最高)" }, "ai-chat.api.baseUrl": { "type": "string", "description": "API基础地址", "default": "https://p13-ai.ngsk.tech:7001" }, "ai-chat.api.key": { "type": "string", "description": "API密钥", "default": "dev-token" } } }, "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" } }