vscode-html-languageservice
Advanced tools
Comparing version 3.0.4-next.13 to 3.0.4-next.14
@@ -121,3 +121,6 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
if (result.value === '') { | ||
return undefined; | ||
} | ||
return result; | ||
} |
@@ -32,2 +32,8 @@ /*--------------------------------------------------------------------------------------------- | ||
var markupContent = generateDocumentation(tag, doesSupportMarkdown); | ||
if (!markupContent) { | ||
markupContent = { | ||
kind: doesSupportMarkdown ? 'markdown' : 'plaintext', | ||
value: '' | ||
}; | ||
} | ||
markupContent.value = '```html\n' + tagLabel + '\n```\n' + markupContent.value; | ||
@@ -56,3 +62,9 @@ hover = { contents: markupContent, range: range }; | ||
if (currAttr === attr.name && attr.description) { | ||
hover = { contents: generateDocumentation(attr, doesSupportMarkdown), range: range }; | ||
var contentsDoc = generateDocumentation(attr, doesSupportMarkdown); | ||
if (contentsDoc) { | ||
hover = { contents: contentsDoc, range: range }; | ||
} | ||
else { | ||
hover = null; | ||
} | ||
} | ||
@@ -79,3 +91,9 @@ }); | ||
if (currAttrValue === attrValue.name && attrValue.description) { | ||
hover = { contents: generateDocumentation(attrValue, doesSupportMarkdown), range: range }; | ||
var contentsDoc = generateDocumentation(attrValue, doesSupportMarkdown); | ||
if (contentsDoc) { | ||
hover = { contents: contentsDoc, range: range }; | ||
} | ||
else { | ||
hover = null; | ||
} | ||
} | ||
@@ -82,0 +100,0 @@ }); |
@@ -132,2 +132,5 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
if (result.value === '') { | ||
return undefined; | ||
} | ||
return result; | ||
@@ -134,0 +137,0 @@ } |
@@ -43,2 +43,8 @@ /*--------------------------------------------------------------------------------------------- | ||
var markupContent = dataProvider_1.generateDocumentation(tag, doesSupportMarkdown); | ||
if (!markupContent) { | ||
markupContent = { | ||
kind: doesSupportMarkdown ? 'markdown' : 'plaintext', | ||
value: '' | ||
}; | ||
} | ||
markupContent.value = '```html\n' + tagLabel + '\n```\n' + markupContent.value; | ||
@@ -67,3 +73,9 @@ hover = { contents: markupContent, range: range }; | ||
if (currAttr === attr.name && attr.description) { | ||
hover = { contents: dataProvider_1.generateDocumentation(attr, doesSupportMarkdown), range: range }; | ||
var contentsDoc = dataProvider_1.generateDocumentation(attr, doesSupportMarkdown); | ||
if (contentsDoc) { | ||
hover = { contents: contentsDoc, range: range }; | ||
} | ||
else { | ||
hover = null; | ||
} | ||
} | ||
@@ -90,3 +102,9 @@ }); | ||
if (currAttrValue === attrValue.name && attrValue.description) { | ||
hover = { contents: dataProvider_1.generateDocumentation(attrValue, doesSupportMarkdown), range: range }; | ||
var contentsDoc = dataProvider_1.generateDocumentation(attrValue, doesSupportMarkdown); | ||
if (contentsDoc) { | ||
hover = { contents: contentsDoc, range: range }; | ||
} | ||
else { | ||
hover = null; | ||
} | ||
} | ||
@@ -93,0 +111,0 @@ }); |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "3.0.4-next.13", | ||
"version": "3.0.4-next.14", | ||
"description": "Language service for HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/umd/htmlLanguageService.js", |
1483249
31225