vscode-html-languageservice
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -12,3 +12,3 @@ (function (factory) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.js_beautify = void 0; | ||
exports.js_beautify = js_beautify; | ||
/*--------------------------------------------------------------------------------------------- | ||
@@ -25,3 +25,2 @@ * Copyright (c) Microsoft Corporation. All rights reserved. | ||
} | ||
exports.js_beautify = js_beautify; | ||
}); |
@@ -30,3 +30,5 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getDefaultHTMLDataProvider = exports.newHTMLDataProvider = exports.getLanguageService = void 0; | ||
exports.getLanguageService = getLanguageService; | ||
exports.newHTMLDataProvider = newHTMLDataProvider; | ||
exports.getDefaultHTMLDataProvider = getDefaultHTMLDataProvider; | ||
const htmlScanner_1 = require("./parser/htmlScanner"); | ||
@@ -81,11 +83,8 @@ const htmlParser_1 = require("./parser/htmlParser"); | ||
} | ||
exports.getLanguageService = getLanguageService; | ||
function newHTMLDataProvider(id, customData) { | ||
return new dataProvider_1.HTMLDataProvider(id, customData); | ||
} | ||
exports.newHTMLDataProvider = newHTMLDataProvider; | ||
function getDefaultHTMLDataProvider() { | ||
return newHTMLDataProvider('default', webCustomData_1.htmlData); | ||
} | ||
exports.getDefaultHTMLDataProvider = getDefaultHTMLDataProvider; | ||
}); |
@@ -16,3 +16,4 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateDocumentation = exports.HTMLDataProvider = void 0; | ||
exports.HTMLDataProvider = void 0; | ||
exports.generateDocumentation = generateDocumentation; | ||
const markup_1 = require("../utils/markup"); | ||
@@ -127,3 +128,2 @@ class HTMLDataProvider { | ||
} | ||
exports.generateDocumentation = generateDocumentation; | ||
}); |
@@ -16,3 +16,3 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createScanner = void 0; | ||
exports.createScanner = createScanner; | ||
const l10n = require("@vscode/l10n"); | ||
@@ -417,3 +417,2 @@ const htmlLanguageTypes_1 = require("../htmlLanguageTypes"); | ||
} | ||
exports.createScanner = createScanner; | ||
}); |
@@ -16,3 +16,3 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.format = void 0; | ||
exports.format = format; | ||
const htmlLanguageTypes_1 = require("../htmlLanguageTypes"); | ||
@@ -106,3 +106,2 @@ const beautify_html_1 = require("../beautify/beautify-html"); | ||
} | ||
exports.format = format; | ||
function trimLeft(str) { | ||
@@ -109,0 +108,0 @@ return str.replace(/^\s+/, ''); |
@@ -16,3 +16,3 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findDocumentHighlights = void 0; | ||
exports.findDocumentHighlights = findDocumentHighlights; | ||
const htmlScanner_1 = require("../parser/htmlScanner"); | ||
@@ -39,3 +39,2 @@ const htmlLanguageTypes_1 = require("../htmlLanguageTypes"); | ||
} | ||
exports.findDocumentHighlights = findDocumentHighlights; | ||
function isBeforeOrEqual(pos1, pos2) { | ||
@@ -42,0 +41,0 @@ return pos1.line < pos2.line || (pos1.line === pos2.line && pos1.character <= pos2.character); |
@@ -16,3 +16,3 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findLinkedEditingRanges = void 0; | ||
exports.findLinkedEditingRanges = findLinkedEditingRanges; | ||
const htmlLanguageTypes_1 = require("../htmlLanguageTypes"); | ||
@@ -38,3 +38,2 @@ function findLinkedEditingRanges(document, position, htmlDocument) { | ||
} | ||
exports.findLinkedEditingRanges = findLinkedEditingRanges; | ||
}); |
@@ -16,3 +16,3 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findMatchingTagPosition = void 0; | ||
exports.findMatchingTagPosition = findMatchingTagPosition; | ||
function findMatchingTagPosition(document, position, htmlDocument) { | ||
@@ -39,3 +39,2 @@ const offset = document.offsetAt(position); | ||
} | ||
exports.findMatchingTagPosition = findMatchingTagPosition; | ||
}); |
@@ -16,3 +16,3 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.doRename = void 0; | ||
exports.doRename = doRename; | ||
function doRename(document, position, newName, htmlDocument) { | ||
@@ -53,3 +53,2 @@ const offset = document.offsetAt(position); | ||
} | ||
exports.doRename = doRename; | ||
function toLocString(p) { | ||
@@ -56,0 +55,0 @@ return `(${p.line}, ${p.character})`; |
@@ -16,3 +16,4 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findDocumentSymbols2 = exports.findDocumentSymbols = void 0; | ||
exports.findDocumentSymbols = findDocumentSymbols; | ||
exports.findDocumentSymbols2 = findDocumentSymbols2; | ||
const htmlLanguageTypes_1 = require("../htmlLanguageTypes"); | ||
@@ -37,3 +38,2 @@ function findDocumentSymbols(document, htmlDocument) { | ||
} | ||
exports.findDocumentSymbols = findDocumentSymbols; | ||
function findDocumentSymbols2(document, htmlDocument) { | ||
@@ -46,3 +46,2 @@ const symbols = []; | ||
} | ||
exports.findDocumentSymbols2 = findDocumentSymbols2; | ||
function provideFileSymbolsInternal(document, node, symbols) { | ||
@@ -49,0 +48,0 @@ const name = nodeToName(node); |
@@ -16,3 +16,4 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.binarySearch = exports.findFirst = void 0; | ||
exports.findFirst = findFirst; | ||
exports.binarySearch = binarySearch; | ||
/** | ||
@@ -39,3 +40,2 @@ * Takes a sorted array and a function p. The array is sorted in such a way that all elements where p(x) is false | ||
} | ||
exports.findFirst = findFirst; | ||
function binarySearch(array, key, comparator) { | ||
@@ -58,3 +58,2 @@ let low = 0, high = array.length - 1; | ||
} | ||
exports.binarySearch = binarySearch; | ||
}); |
@@ -16,3 +16,3 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalizeMarkupContent = void 0; | ||
exports.normalizeMarkupContent = normalizeMarkupContent; | ||
function normalizeMarkupContent(input) { | ||
@@ -33,3 +33,2 @@ if (!input) { | ||
} | ||
exports.normalizeMarkupContent = normalizeMarkupContent; | ||
}); |
@@ -16,7 +16,6 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isDefined = void 0; | ||
exports.isDefined = isDefined; | ||
function isDefined(obj) { | ||
return typeof obj !== 'undefined'; | ||
} | ||
exports.isDefined = isDefined; | ||
}); |
@@ -16,3 +16,6 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.join = exports.extname = exports.basename = exports.dirname = void 0; | ||
exports.join = void 0; | ||
exports.dirname = dirname; | ||
exports.basename = basename; | ||
exports.extname = extname; | ||
/** | ||
@@ -33,3 +36,2 @@ * @returns the directory name of a path. | ||
} | ||
exports.dirname = dirname; | ||
/** | ||
@@ -50,3 +52,2 @@ * @returns the base name of a path. | ||
} | ||
exports.basename = basename; | ||
/** | ||
@@ -60,3 +61,2 @@ * @returns {{.far}} from boo.far or the empty string. | ||
} | ||
exports.extname = extname; | ||
const join = function () { | ||
@@ -63,0 +63,0 @@ // Not using a function with var-args because of how TS compiles |
@@ -16,3 +16,9 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.joinPath = exports.normalizePath = exports.resolvePath = exports.extname = exports.basename = exports.dirname = exports.isAbsolutePath = void 0; | ||
exports.isAbsolutePath = isAbsolutePath; | ||
exports.dirname = dirname; | ||
exports.basename = basename; | ||
exports.extname = extname; | ||
exports.resolvePath = resolvePath; | ||
exports.normalizePath = normalizePath; | ||
exports.joinPath = joinPath; | ||
const vscode_uri_1 = require("vscode-uri"); | ||
@@ -24,3 +30,2 @@ const Slash = '/'.charCodeAt(0); | ||
} | ||
exports.isAbsolutePath = isAbsolutePath; | ||
function dirname(uri) { | ||
@@ -30,3 +35,2 @@ const lastIndexOfSlash = uri.lastIndexOf('/'); | ||
} | ||
exports.dirname = dirname; | ||
function basename(uri) { | ||
@@ -36,3 +40,2 @@ const lastIndexOfSlash = uri.lastIndexOf('/'); | ||
} | ||
exports.basename = basename; | ||
function extname(uri) { | ||
@@ -55,3 +58,2 @@ for (let i = uri.length - 1; i >= 0; i--) { | ||
} | ||
exports.extname = extname; | ||
function resolvePath(uriString, path) { | ||
@@ -65,3 +67,2 @@ if (isAbsolutePath(path)) { | ||
} | ||
exports.resolvePath = resolvePath; | ||
function normalizePath(parts) { | ||
@@ -89,3 +90,2 @@ const newParts = []; | ||
} | ||
exports.normalizePath = normalizePath; | ||
function joinPath(uriString, ...paths) { | ||
@@ -99,3 +99,2 @@ const uri = vscode_uri_1.URI.parse(uriString); | ||
} | ||
exports.joinPath = joinPath; | ||
}); |
@@ -16,3 +16,7 @@ /*--------------------------------------------------------------------------------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isLetterOrDigit = exports.repeat = exports.commonPrefixLength = exports.endsWith = exports.startsWith = void 0; | ||
exports.startsWith = startsWith; | ||
exports.endsWith = endsWith; | ||
exports.commonPrefixLength = commonPrefixLength; | ||
exports.repeat = repeat; | ||
exports.isLetterOrDigit = isLetterOrDigit; | ||
function startsWith(haystack, needle) { | ||
@@ -29,3 +33,2 @@ if (haystack.length < needle.length) { | ||
} | ||
exports.startsWith = startsWith; | ||
/** | ||
@@ -46,3 +49,2 @@ * Determines if haystack ends with needle. | ||
} | ||
exports.endsWith = endsWith; | ||
/** | ||
@@ -61,3 +63,2 @@ * @returns the length of the common prefix of the two strings. | ||
} | ||
exports.commonPrefixLength = commonPrefixLength; | ||
function repeat(value, count) { | ||
@@ -74,3 +75,2 @@ let s = ''; | ||
} | ||
exports.repeat = repeat; | ||
const _a = 'a'.charCodeAt(0); | ||
@@ -86,3 +86,2 @@ const _z = 'z'.charCodeAt(0); | ||
} | ||
exports.isLetterOrDigit = isLetterOrDigit; | ||
}); |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"description": "Language service for HTML", | ||
@@ -20,14 +20,14 @@ "main": "./lib/umd/htmlLanguageService.js", | ||
"@types/node": "18.x", | ||
"@typescript-eslint/eslint-plugin": "^7.13.1", | ||
"@typescript-eslint/parser": "^7.13.1", | ||
"@typescript-eslint/eslint-plugin": "^8.3.0", | ||
"@typescript-eslint/parser": "^8.3.0", | ||
"@vscode/web-custom-data": "^0.4.11", | ||
"eslint": "^8.57.0", | ||
"eslint": "^9.9.1", | ||
"js-beautify": "^1.15.1", | ||
"mocha": "^10.4.0", | ||
"rimraf": "^5.0.7", | ||
"typescript": "5.4.5" | ||
"mocha": "^10.7.3", | ||
"rimraf": "^6.0.1", | ||
"typescript": "5.5.4" | ||
}, | ||
"dependencies": { | ||
"@vscode/l10n": "^0.0.18", | ||
"vscode-languageserver-textdocument": "^1.0.11", | ||
"vscode-languageserver-textdocument": "^1.0.12", | ||
"vscode-languageserver-types": "^3.17.5", | ||
@@ -34,0 +34,0 @@ "vscode-uri": "^3.0.8" |
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
75
33180
1582649