vscode-html-languageservice
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -297,3 +297,3 @@ /*--------------------------------------------------------------------------------------------- | ||
}; | ||
var globalAttributes = ['ng-app', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd', | ||
var globalAttributes = ['ng-app', 'ng-strict-di', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd', | ||
'ng-click', 'ng-cloak', 'ng-controller', 'ng-copy', 'ng-csp', 'ng-cut', 'ng-dblclick', 'ng-disabled', 'ng-focus', 'ng-form', 'ng-hide', 'ng-href', 'ng-if', | ||
@@ -428,3 +428,3 @@ 'ng-include', 'ng-init', 'ng-jq', 'ng-keydown', 'ng-keypress', 'ng-keyup', 'ng-list', 'ng-model-options', 'ng-mousedown', 'ng-mouseenter', 'ng-mouseleave', | ||
END THIRD PARTY | ||
*/ | ||
*/ | ||
//# sourceMappingURL=htmlTags.js.map |
@@ -150,4 +150,9 @@ /*--------------------------------------------------------------------------------------------- | ||
var tag = currentTag.toLowerCase(); | ||
var seenAttributes = Object.create(null); | ||
tagProviders.forEach(function (provider) { | ||
provider.collectAttributes(tag, function (attribute, type) { | ||
if (seenAttributes[attribute]) { | ||
return; | ||
} | ||
seenAttributes[attribute] = true; | ||
var codeSnippet = attribute; | ||
@@ -173,6 +178,6 @@ var command; | ||
}); | ||
collectDataAttributesSuggestions(range); | ||
collectDataAttributesSuggestions(range, seenAttributes); | ||
return result; | ||
} | ||
function collectDataAttributesSuggestions(range) { | ||
function collectDataAttributesSuggestions(range, seenAttributes) { | ||
var dataAttr = 'data-'; | ||
@@ -183,3 +188,3 @@ var dataAttributes = {}; | ||
node.attributeNames.forEach(function (attr) { | ||
if (startsWith(attr, dataAttr) && !dataAttributes[attr]) { | ||
if (startsWith(attr, dataAttr) && !dataAttributes[attr] && !seenAttributes[attr]) { | ||
dataAttributes[attr] = attr + '="$1"'; | ||
@@ -186,0 +191,0 @@ } |
@@ -310,3 +310,3 @@ /*--------------------------------------------------------------------------------------------- | ||
}; | ||
var globalAttributes = ['ng-app', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd', | ||
var globalAttributes = ['ng-app', 'ng-strict-di', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd', | ||
'ng-click', 'ng-cloak', 'ng-controller', 'ng-copy', 'ng-csp', 'ng-cut', 'ng-dblclick', 'ng-disabled', 'ng-focus', 'ng-form', 'ng-hide', 'ng-href', 'ng-if', | ||
@@ -444,3 +444,3 @@ 'ng-include', 'ng-init', 'ng-jq', 'ng-keydown', 'ng-keypress', 'ng-keyup', 'ng-list', 'ng-model-options', 'ng-mousedown', 'ng-mouseenter', 'ng-mouseleave', | ||
END THIRD PARTY | ||
*/ | ||
*/ | ||
//# sourceMappingURL=htmlTags.js.map |
@@ -160,4 +160,9 @@ (function (factory) { | ||
var tag = currentTag.toLowerCase(); | ||
var seenAttributes = Object.create(null); | ||
tagProviders.forEach(function (provider) { | ||
provider.collectAttributes(tag, function (attribute, type) { | ||
if (seenAttributes[attribute]) { | ||
return; | ||
} | ||
seenAttributes[attribute] = true; | ||
var codeSnippet = attribute; | ||
@@ -183,6 +188,6 @@ var command; | ||
}); | ||
collectDataAttributesSuggestions(range); | ||
collectDataAttributesSuggestions(range, seenAttributes); | ||
return result; | ||
} | ||
function collectDataAttributesSuggestions(range) { | ||
function collectDataAttributesSuggestions(range, seenAttributes) { | ||
var dataAttr = 'data-'; | ||
@@ -193,3 +198,3 @@ var dataAttributes = {}; | ||
node.attributeNames.forEach(function (attr) { | ||
if (strings_1.startsWith(attr, dataAttr) && !dataAttributes[attr]) { | ||
if (strings_1.startsWith(attr, dataAttr) && !dataAttributes[attr] && !seenAttributes[attr]) { | ||
dataAttributes[attr] = attr + '="$1"'; | ||
@@ -196,0 +201,0 @@ } |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Language service for HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/umd/htmlLanguageService.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
652028
13763