vscode-html-languageservice
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -34,3 +34,3 @@ (function (factory) { | ||
// else keep at least one whitespace | ||
if (extendedStart + 1 < startOffset) { | ||
if (extendedStart < startOffset) { | ||
startOffset = extendedStart + 1; | ||
@@ -48,3 +48,3 @@ } | ||
} | ||
range = vscode_languageserver_types_1.Range.create(document.positionAt(extendedStart), document.positionAt(endOffset)); | ||
range = vscode_languageserver_types_1.Range.create(document.positionAt(startOffset), document.positionAt(endOffset)); | ||
includesEnd = endOffset === value.length; | ||
@@ -51,0 +51,0 @@ value = value.substring(startOffset, endOffset); |
@@ -95,2 +95,11 @@ (function (factory) { | ||
}); | ||
test('range 3', function () { | ||
var content = [ | ||
'<div |class= "foo"|>' | ||
].join('\n'); | ||
var expected = [ | ||
'<div class= "foo">' | ||
].join('\n'); | ||
format(content, expected); | ||
}); | ||
test('range with indent', function () { | ||
@@ -134,3 +143,3 @@ var content = [ | ||
'<div class = "foo">', | ||
' <div></div><img src="foo">', | ||
' <div></div> <img src="foo">', | ||
' </div>' | ||
@@ -137,0 +146,0 @@ ].join('\n'); |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"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
330262
5693