Skip to content

Commit 6d25151

Browse files
authored
Add link to package homepage in package.json files
Displayed at the bottom of the box that appears when hovering over a package name
1 parent 7ed2a1d commit 6d25151

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

extensions/npm/src/features/packageJSONContribution.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ export class PackageJSONContribution implements IJSONContribution {
288288
if (latest) {
289289
result.push(localize('json.npm.version.hover', 'Latest version: {0}', latest));
290290
}
291+
if (obj.homepage) {
292+
result.push(obj.homepage);
293+
}
291294
return result;
292295
}
293296
} catch (e) {

0 commit comments

Comments
 (0)