Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vscode-html-languageservice

Package Overview
Dependencies
Maintainers
6
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-html-languageservice - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

4

lib/services/htmlFormatter.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc