mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-25 21:36:52 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: Engel Nyst <engel.nyst@gmail.com> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
111 lines
3.2 KiB
JSON
111 lines
3.2 KiB
JSON
{
|
|
"name": "openhands-vscode",
|
|
"displayName": "OpenHands Integration",
|
|
"description": "Integrates OpenHands with VS Code for easy conversation starting and context passing.",
|
|
"version": "0.0.1",
|
|
"publisher": "openhands",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/openhands/OpenHands.git"
|
|
},
|
|
"engines": {
|
|
"vscode": "^1.98.2",
|
|
"node": ">=18.0.0"
|
|
},
|
|
"activationEvents": [
|
|
"onCommand:openhands.startConversation",
|
|
"onCommand:openhands.startConversationWithFileContext",
|
|
"onCommand:openhands.startConversationWithSelectionContext"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "openhands.startConversation",
|
|
"title": "Start New Conversation",
|
|
"category": "OpenHands"
|
|
},
|
|
{
|
|
"command": "openhands.startConversationWithFileContext",
|
|
"title": "Start with File Content",
|
|
"category": "OpenHands"
|
|
},
|
|
{
|
|
"command": "openhands.startConversationWithSelectionContext",
|
|
"title": "Start with Selected Text",
|
|
"category": "OpenHands"
|
|
}
|
|
],
|
|
"submenus": [
|
|
{
|
|
"id": "openhands.contextMenu",
|
|
"label": "OpenHands"
|
|
}
|
|
],
|
|
"menus": {
|
|
"editor/context": [
|
|
{
|
|
"submenu": "openhands.contextMenu",
|
|
"group": "navigation@1"
|
|
}
|
|
],
|
|
"openhands.contextMenu": [
|
|
{
|
|
"when": "editorHasSelection",
|
|
"command": "openhands.startConversationWithSelectionContext",
|
|
"group": "1@1"
|
|
},
|
|
{
|
|
"command": "openhands.startConversationWithFileContext",
|
|
"group": "1@2"
|
|
}
|
|
],
|
|
"commandPalette": [
|
|
{
|
|
"command": "openhands.startConversation",
|
|
"when": "true"
|
|
},
|
|
{
|
|
"command": "openhands.startConversationWithFileContext",
|
|
"when": "editorIsOpen"
|
|
},
|
|
{
|
|
"command": "openhands.startConversationWithSelectionContext",
|
|
"when": "editorHasSelection"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"watch": "tsc -watch -p ./",
|
|
"test": "npm run compile && node ./out/test/runTest.js",
|
|
"package-vsix": "npm run compile && npx vsce package --no-dependencies",
|
|
"lint": "npm run typecheck && eslint src --ext .ts && prettier --check src/**/*.ts",
|
|
"lint:fix": "eslint src --ext .ts --fix && prettier --write src/**/*.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"@types/vscode": "^1.98.2",
|
|
"typescript": "^5.0.0",
|
|
"@types/mocha": "^10.0.6",
|
|
"mocha": "^10.4.0",
|
|
"@vscode/test-electron": "^2.3.9",
|
|
"@types/node": "^20.12.12",
|
|
"@types/glob": "^8.1.0",
|
|
"@vscode/vsce": "^3.5.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
"@typescript-eslint/parser": "^7.18.0",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
"eslint-config-prettier": "^10.1.5",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-prettier": "^5.5.0",
|
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
"prettier": "^3.5.3"
|
|
}
|
|
}
|