Update view IDs and add comment about vscode caching behavior

This commit is contained in:
Saoud Rizwan
2024-07-28 11:50:31 -04:00
parent e356294754
commit 890d340d7f
2 changed files with 4 additions and 3 deletions

View File

@@ -13,7 +13,8 @@ https://github.com/KumarVariable/vscode-extension-sidebar-html/blob/master/src/c
*/
export class ClaudeDevProvider implements vscode.WebviewViewProvider {
public static readonly viewType = "claude-dev.SidebarProvider"
public static readonly sideBarId = "claude-dev.SidebarProvider" // used in package.json as the view's id. This value cannot be changed due to how vscode caches views based on their id, and updating the id would break existing instances of the extension.
public static readonly tabPanelId = "claude-dev.TabPanelProvider"
private disposables: vscode.Disposable[] = []
private view?: vscode.WebviewView | vscode.WebviewPanel
private providerInstanceIdentifier = Date.now()