vscode-html-languageservice
Advanced tools
Comparing version 1.0.1-next.2 to 1.0.1-next.3
@@ -18,5 +18,7 @@ (function (factory) { | ||
var value = document.getText(); | ||
var includesEnd = true; | ||
if (range) { | ||
var startOffset = document.offsetAt(range.start); | ||
var endOffset = document.offsetAt(range.end); | ||
includesEnd = endOffset === value.length; | ||
value = value.substring(startOffset, endOffset); | ||
@@ -36,3 +38,3 @@ } | ||
indent_handlebars: getFormatOption(options, 'indentHandlebars', false), | ||
end_with_newline: getFormatOption(options, 'endWithNewline', false), | ||
end_with_newline: includesEnd && getFormatOption(options, 'endWithNewline', false), | ||
extra_liners: getTagsFormatOption(options, 'extraLiners', void 0), | ||
@@ -39,0 +41,0 @@ }; |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "1.0.1-next.2", | ||
"version": "1.0.1-next.3", | ||
"description": "Language service for HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
291662
4917