Add link to package homepage in package.json files

Displayed at the bottom of the box that appears when hovering over a package name
This commit is contained in:
Callum Isitt 2018-05-17 15:15:40 +01:00 committed by GitHub
parent 7ed2a1d3d7
commit 6d25151513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,6 +288,9 @@ export class PackageJSONContribution implements IJSONContribution {
if (latest) {
result.push(localize('json.npm.version.hover', 'Latest version: {0}', latest));
}
if (obj.homepage) {
result.push(obj.homepage);
}
return result;
}
} catch (e) {