[json] hover in JSON documents hides '*', fixes #8068

This commit is contained in:
Martin Aeschlimann
2016-07-20 16:29:23 +02:00
parent 9b3d529474
commit 349c4ddf60
4 changed files with 25 additions and 27 deletions

View File

@@ -219,10 +219,10 @@ export class ProjectJSONContribution implements JSONWorkerContribution {
this.addCached(res.id, res.version, res.description);
if (res.id === pack) {
if (res.description) {
htmlContent.push(res.description);
htmlContent.push({ language: 'string', value: res.description });
}
if (res.version) {
htmlContent.push(localize('json.nugget.version.hover', 'Latest version: {0}', res.version));
htmlContent.push({ language: 'string', value: localize('json.nugget.version.hover', 'Latest version: {0}', res.version)});
}
break;
}