From 7eafa621a36d5936a524d5aba5042c05907f98c8 Mon Sep 17 00:00:00 2001 From: Lim Jet <57783762+daoauth@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:32:28 +0900 Subject: [PATCH] update provier id --- package.json | 10 +++++----- src/webviewPovider.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5b190ff..555c286 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "theme": "dark" }, "activationEvents": [ - "onView:webviewViewProvider" + "onView:webviewViewProviderAptos" ], "main": "./out/extension.js", "browser": "./out/web/extension.js", @@ -32,17 +32,17 @@ "viewsContainers": { "activitybar": [ { - "id": "extensionSidebar", + "id": "extensionSidebarAptos", "title": "Aptos Extension", "icon": "media/icon-side.png" } ] }, "views": { - "extensionSidebar": [ + "extensionSidebarAptos": [ { + "id": "webviewViewProviderAptos", "type": "webview", - "id": "webviewViewProvider", "name": "Aptos Extension" } ] @@ -61,7 +61,7 @@ "view/title": [ { "command": "extension.openDocs", - "when": "view == webviewViewProvider", + "when": "view == webviewViewProviderAptos", "group": "navigation" } ] diff --git a/src/webviewPovider.ts b/src/webviewPovider.ts index 410cf01..46a99bf 100644 --- a/src/webviewPovider.ts +++ b/src/webviewPovider.ts @@ -14,7 +14,7 @@ import { } from './webview/src/utilities/cli'; export class WebviewViewProvider implements vscode.WebviewViewProvider { - public static readonly viewType = 'webviewViewProvider'; + public static readonly viewType = 'webviewViewProviderAptos'; private _view?: vscode.WebviewView; private readonly _context;