Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 2bdd9e8

Browse files
committed
feat: directing people to the snyk advisor page for better package information
1 parent f11367d commit 2bdd9e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SnykAction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export class SnykVulnInfo {
7575
res.push(
7676
createOpenVulnPageAction({
7777
diagnostic,
78-
actionTitle: 'Learn about this vulnerability',
79-
title: 'Learn about this vulnerability',
78+
actionTitle: 'Learn about this package',
79+
title: 'Learn about this package',
8080
args: [pkg],
8181
isPreferred: true,
8282
})

src/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function activate(context) {
142142
context.subscriptions.push(
143143
commands.registerCommand('vulnCost.openVulnPage', pkg => {
144144
statistics.send('vulnCost.openVulnPage', pkg);
145-
const url = `https://snyk.io/test/npm/${pkg}?${utm}`;
145+
const url = `https://snyk.io/advisor/npm-package/${pkg}?${utm}`;
146146
vscode.env.openExternal(vscode.Uri.parse(url));
147147
return;
148148
})

0 commit comments

Comments
 (0)