vscode-html-languageservice
Advanced tools
Comparing version 4.2.2 to 4.2.4
@@ -31,3 +31,3 @@ # Custom Data for HTML Language Service | ||
[html5.ts](../src/languageFacts/data/html5.ts) contains that built-in dataset that conforms to the spec. | ||
[html5.ts](../src/languageFacts/data/webCustomData.ts) contains that built-in dataset that conforms to the spec. | ||
@@ -34,0 +34,0 @@ ## Language Features |
@@ -141,14 +141,2 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
function getEOL(document) { | ||
var text = document.getText(); | ||
if (document.lineCount > 1) { | ||
var to = document.offsetAt(Position.create(1, 0)); | ||
var from = to; | ||
while (from > 0 && isEOL(text, from - 1)) { | ||
from--; | ||
} | ||
return text.substr(from, to - from); | ||
} | ||
return '\n'; | ||
} | ||
function isEOL(text, offset) { | ||
@@ -155,0 +143,0 @@ return '\r\n'.indexOf(text.charAt(offset)) !== -1; |
@@ -154,14 +154,2 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
function getEOL(document) { | ||
var text = document.getText(); | ||
if (document.lineCount > 1) { | ||
var to = document.offsetAt(htmlLanguageTypes_1.Position.create(1, 0)); | ||
var from = to; | ||
while (from > 0 && isEOL(text, from - 1)) { | ||
from--; | ||
} | ||
return text.substr(from, to - from); | ||
} | ||
return '\n'; | ||
} | ||
function isEOL(text, offset) { | ||
@@ -168,0 +156,0 @@ return '\r\n'.indexOf(text.charAt(offset)) !== -1; |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "4.2.2", | ||
"version": "4.2.4", | ||
"description": "Language service for HTML", | ||
@@ -20,8 +20,8 @@ "main": "./lib/umd/htmlLanguageService.js", | ||
"@types/node": "^10.12.21", | ||
"@typescript-eslint/eslint-plugin": "^5.10.1", | ||
"@typescript-eslint/parser": "^5.10.1", | ||
"@typescript-eslint/eslint-plugin": "^5.15.0", | ||
"@typescript-eslint/parser": "^5.15.0", | ||
"@vscode/web-custom-data": "^0.3.8", | ||
"eslint": "^8.7.0", | ||
"eslint": "^8.11.0", | ||
"js-beautify": "^1.14.0", | ||
"mocha": "^9.2.0", | ||
"mocha": "^9.2.2", | ||
"rimraf": "^3.0.2", | ||
@@ -31,3 +31,3 @@ "typescript": "^4.5.5" | ||
"dependencies": { | ||
"vscode-languageserver-textdocument": "^1.0.3", | ||
"vscode-languageserver-textdocument": "^1.0.4", | ||
"vscode-languageserver-types": "^3.16.0", | ||
@@ -34,0 +34,0 @@ "vscode-nls": "^5.0.0", |
1563558
32763