[json] update language service & server & MarkedString escaping fix. Fixes #11413

This commit is contained in:
Martin Aeschlimann
2016-09-07 16:37:20 +02:00
parent cec9f9e936
commit e3ce57ab09
5 changed files with 35 additions and 23 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({ language: 'string', value: res.description });
htmlContent.push(MarkedString.fromPlainText(res.description));
}
if (res.version) {
htmlContent.push({ language: 'string', value: localize('json.nugget.version.hover', 'Latest version: {0}', res.version)});
htmlContent.push(MarkedString.fromPlainText(localize('json.nugget.version.hover', 'Latest version: {0}', res.version)));
}
break;
}