Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
can open mani and sw from sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Willis (HE / HIM) committed May 4, 2022
1 parent c4941c4 commit 7ddc71d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/services/validation/sw-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ export class ServiceWorkerProvider implements vscode.TreeDataProvider<any> {
"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 {
Expand Down
6 changes: 6 additions & 0 deletions src/services/validation/validation-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 7ddc71d

Please sign in to comment.