113 lines
2.7 KiB
JSON

{
"$schema": "https://schema.kunkun.sh/",
"name": "kunkun-ext-vscode",
"version": "0.1.7",
"license": "MIT",
"repository": "https://github.com/kunkunsh/kunkun-ext-vscode",
"type": "module",
"kunkun": {
"name": "VSCode",
"shortDescription": "Open projects quickly with VSCode.",
"longDescription": "This extension reads data from VSCode Project Manager extension and list the projects. Pick one from the list and it will be opened with VSCode.",
"identifier": "vscode",
"permissions": [
"os:all",
{
"permission": "fs:exists",
"allow": [
{
"path": "**/*"
}
]
},
{
"permission": "shell:execute",
"allow": [
{
"cmd": {
"program": "code",
"args": [
".+"
]
}
},
{
"cmd": {
"program": "which",
"args": [
"[a-z0-9-_]+"
]
}
},
{
"cmd": {
"program": "where",
"args": [
"[a-z0-9-_]+"
]
}
}
]
},
{
"permission": "fs:read",
"allow": [
{
"path": "$HOME/Library/Application Support/Code/User/globalStorage/alefragnani.project-manager/projects.json"
},
{
"path": "$HOME/.config/Code/User/globalStorage/alefragnani.project-manager/projects.json"
},
{
"path": "$APPDATA/Code/User/globalStorage/alefragnani.project-manager/projects.json"
},
{
"path": "$HOME/Library/Application Support/Code/User/globalStorage/storage.json"
},
{
"path": "$HOME/.config/Code/User/globalStorage/storage.json"
},
{
"path": "$APPDATA/Code/User/globalStorage/storage.json"
}
]
}
],
"demoImages": [],
"icon": {
"type": "iconify",
"value": "vscode-icons:file-type-vscode"
},
"customUiCmds": [],
"templateUiCmds": [
{
"name": "Search VSCode Project Manager",
"main": "dist/project-manager.js",
"cmds": []
},
{
"name": "VSCode Recent Projects",
"main": "dist/recent-workspaces.js",
"cmds": []
}
]
},
"files": [
"./dist"
],
"scripts": {
"dev": "bun build.ts dev",
"build": "bun build.ts"
},
"dependencies": {
"@kksh/api": "^0.1.7",
"valibot": "^1.0.0"
},
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}