Revert provider id to resolve vscode view caching issues

This commit is contained in:
Saoud Rizwan
2024-07-27 19:33:14 -04:00
parent d6c5a237df
commit c8369e5a91
3 changed files with 8 additions and 8 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "claude-dev", "name": "claude-dev",
"version": "1.0.2", "version": "1.0.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "claude-dev", "name": "claude-dev",
"version": "1.0.2", "version": "1.0.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@anthropic-ai/sdk": "^0.24.3", "@anthropic-ai/sdk": "^0.24.3",

View File

@@ -2,7 +2,7 @@
"name": "claude-dev", "name": "claude-dev",
"displayName": "Claude Dev", "displayName": "Claude Dev",
"description": "Autonomous software engineer right in your IDE, capable of reading/writing files, executing commands, and more with your permission every step of the way.", "description": "Autonomous software engineer right in your IDE, capable of reading/writing files, executing commands, and more with your permission every step of the way.",
"version": "1.0.2", "version": "1.0.3",
"icon": "icon.png", "icon": "icon.png",
"engines": { "engines": {
"vscode": "^1.84.0" "vscode": "^1.84.0"
@@ -42,7 +42,7 @@
"claude-dev-ActivityBar": [ "claude-dev-ActivityBar": [
{ {
"type": "webview", "type": "webview",
"id": "claude-dev.ClaudeDevProvider", "id": "claude-dev.SidebarProvider",
"name": "" "name": ""
} }
] ]
@@ -74,17 +74,17 @@
{ {
"command": "claude-dev.plusButtonTapped", "command": "claude-dev.plusButtonTapped",
"group": "navigation", "group": "navigation",
"when": "view == claude-dev.ClaudeDevProvider" "when": "view == claude-dev.SidebarProvider"
}, },
{ {
"command": "claude-dev.popoutButtonTapped", "command": "claude-dev.popoutButtonTapped",
"group": "navigation", "group": "navigation",
"when": "view == claude-dev.ClaudeDevProvider" "when": "view == claude-dev.SidebarProvider"
}, },
{ {
"command": "claude-dev.settingsButtonTapped", "command": "claude-dev.settingsButtonTapped",
"group": "navigation", "group": "navigation",
"when": "view == claude-dev.ClaudeDevProvider" "when": "view == claude-dev.SidebarProvider"
} }
] ]
} }

View File

@@ -13,7 +13,7 @@ https://github.com/KumarVariable/vscode-extension-sidebar-html/blob/master/src/c
*/ */
export class ClaudeDevProvider implements vscode.WebviewViewProvider { export class ClaudeDevProvider implements vscode.WebviewViewProvider {
public static readonly viewType = "claude-dev.ClaudeDevProvider" public static readonly viewType = "claude-dev.SidebarProvider"
private disposables: vscode.Disposable[] = [] private disposables: vscode.Disposable[] = []
private view?: vscode.WebviewView | vscode.WebviewPanel private view?: vscode.WebviewView | vscode.WebviewPanel
private providerInstanceIdentifier = Date.now() private providerInstanceIdentifier = Date.now()