提交 802d562f 编写于 作者: M Martin Aeschlimann

fixes #8977: package.json dependency hover can break with links

上级 5713403a
......@@ -185,7 +185,7 @@ export class PackageJSONContribution implements IJSONContribution {
try {
let obj = JSON.parse(success.responseText);
if (obj) {
let result = [];
let result : string[] = [];
if (obj.description) {
result.push(obj.description);
}
......@@ -211,7 +211,7 @@ export class PackageJSONContribution implements IJSONContribution {
htmlContent.push(localize('json.npm.package.hover', '{0}', pack));
return this.getInfo(pack).then(infos => {
infos.forEach(info => {
htmlContent.push(info);
htmlContent.push({language: 'string', value: info});
});
return htmlContent;
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册