Add sidebar code

This commit is contained in:
Saoud Rizwan
2024-07-06 01:31:16 -04:00
parent 0ede211d4f
commit fd750864db
8 changed files with 372 additions and 16 deletions

View File

@@ -12,12 +12,46 @@
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "custom-activitybar",
"title": "VSCode Extension",
"icon": "assets/logo_bito.svg"
}
]
},
"views": {
"custom-activitybar": [
{
"type": "webview",
"id": "vscodeSidebar.openview",
"name": "View",
"contextualTitle": "View"
}
]
},
"commands": [
{
"command": "claude-dev.helloWorld",
"title": "Hello World"
"command": "vscodeSidebar.openview",
"title": "Sidebar View"
},
{
"command": "vscodeSidebar.menu.view",
"category": "vscode-extension-sidebar-html",
"title": "Sample WebView in VS Code Sidebar",
"icon": "$(clear-all)"
}
]
],
"menus": {
"view/title": [
{
"command": "vscodeSidebar.menu.view",
"group": "navigation",
"when": "view == vscodeSidebar.openview"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run package",