diff --git a/src/services/validation/sw-view.ts b/src/services/validation/sw-view.ts index eefa5b2..b47b067 100644 --- a/src/services/validation/sw-view.ts +++ b/src/services/validation/sw-view.ts @@ -106,7 +106,12 @@ export class ServiceWorkerProvider implements vscode.TreeDataProvider { "Service Worker", "https://docs.microsoft.com/en-us/microsoft-edge/progressive-web-apps-chromium/how-to/service-workers", "true", - vscode.TreeItemCollapsibleState.Expanded + vscode.TreeItemCollapsibleState.Expanded, + { + command: "vscode.open", + title: "Open Service Worker", + arguments: [serviceWorkerId], + } ), ]); } else { diff --git a/src/services/validation/validation-view.ts b/src/services/validation/validation-view.ts index 04c1aaa..c7f3c61 100644 --- a/src/services/validation/validation-view.ts +++ b/src/services/validation/validation-view.ts @@ -147,6 +147,12 @@ class ValidationItem extends vscode.TreeItem { super(label, collapsibleState); this.tooltip = `${this.label}-${this.version}`; this.description = this.version; + + this.command = { + command: "vscode.open", + title: "Open Web Manifest", + arguments: [getManifest()], + }; } iconPath =