vscode-pug-languageservice
Advanced tools
Comparing version 0.27.12 to 0.27.13
@@ -14,10 +14,10 @@ "use strict"; | ||
return { | ||
parsePugDocument: (doc) => pugDocument_1.parsePugDocument(doc, htmlLs), | ||
doComplete: completion_1.register(htmlLs), | ||
findDocumentHighlights: documentHighlight_1.register(htmlLs), | ||
findDocumentLinks: documentLinks_1.register(htmlLs), | ||
findDocumentSymbols: documentSymbol_1.register(htmlLs), | ||
doHover: hover_1.register(htmlLs), | ||
createScanner: scanner_1.register(htmlLs), | ||
getSelectionRanges: selectionRanges_1.register(htmlLs), | ||
parsePugDocument: (doc) => (0, pugDocument_1.parsePugDocument)(doc, htmlLs), | ||
doComplete: (0, completion_1.register)(htmlLs), | ||
findDocumentHighlights: (0, documentHighlight_1.register)(htmlLs), | ||
findDocumentLinks: (0, documentLinks_1.register)(htmlLs), | ||
findDocumentSymbols: (0, documentSymbol_1.register)(htmlLs), | ||
doHover: (0, hover_1.register)(htmlLs), | ||
createScanner: (0, scanner_1.register)(htmlLs), | ||
getSelectionRanges: (0, selectionRanges_1.register)(htmlLs), | ||
}; | ||
@@ -24,0 +24,0 @@ } |
@@ -15,3 +15,3 @@ "use strict"; | ||
const pugCode = pugTextDoc.getText(); | ||
const codeGen = code_gen_1.createCodeGen(); | ||
const codeGen = (0, code_gen_1.createCodeGen)(); | ||
let error; | ||
@@ -28,3 +28,4 @@ let fullPugTagEnd; | ||
} | ||
catch (_error) { | ||
catch (e) { | ||
const _error = e; | ||
error = { | ||
@@ -31,0 +32,0 @@ ..._error, |
@@ -11,3 +11,3 @@ "use strict"; | ||
const htmlComplete = await htmlLs.doComplete2(pugDoc.sourceMap.mappedDocument, htmlRange.start, pugDoc.htmlDocument, documentContext, options); | ||
return transforms_1.transformCompletionList(htmlComplete, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
return (0, transforms_1.transformCompletionList)(htmlComplete, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
}; | ||
@@ -14,0 +14,0 @@ } |
@@ -11,3 +11,3 @@ "use strict"; | ||
const htmlResult = htmlLs.findDocumentHighlights(pugDoc.sourceMap.mappedDocument, htmlRange.start, pugDoc.htmlDocument); | ||
return transforms_1.transformLocations(htmlResult, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
return (0, transforms_1.transformLocations)(htmlResult, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
}; | ||
@@ -14,0 +14,0 @@ } |
@@ -8,3 +8,3 @@ "use strict"; | ||
const htmlResult = htmlLs.findDocumentLinks(pugDoc.sourceMap.mappedDocument, docContext); | ||
return transforms_1.transformLocations(htmlResult, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
return (0, transforms_1.transformLocations)(htmlResult, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
}; | ||
@@ -11,0 +11,0 @@ } |
@@ -9,3 +9,3 @@ "use strict"; | ||
const htmlResult = htmlLs.findDocumentSymbols(pugDoc.sourceMap.mappedDocument, pugDoc.htmlDocument); | ||
return transforms_1.transformSymbolInformations(htmlResult, htmlLocation => { | ||
return (0, transforms_1.transformSymbolInformations)(htmlResult, htmlLocation => { | ||
const pugRange = pugDoc.sourceMap.getSourceRange(htmlLocation.range.start, htmlLocation.range.end); | ||
@@ -12,0 +12,0 @@ return pugRange ? vscode.Location.create(pugDoc.sourceMap.sourceDocument.uri, pugRange) : undefined; |
@@ -13,3 +13,3 @@ "use strict"; | ||
return; | ||
return transforms_1.transformHover(htmlResult, htmlRange => docDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
return (0, transforms_1.transformHover)(htmlResult, htmlRange => docDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
}; | ||
@@ -16,0 +16,0 @@ } |
@@ -12,3 +12,3 @@ "use strict"; | ||
const htmlResult = htmlLs.getSelectionRanges(pugDoc.sourceMap.mappedDocument, htmlPosArr); | ||
return transforms_1.transformLocations(htmlResult, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
return (0, transforms_1.transformLocations)(htmlResult, htmlRange => pugDoc.sourceMap.getSourceRange(htmlRange.start, htmlRange.end)); | ||
}; | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"name": "vscode-pug-languageservice", | ||
"version": "0.27.12", | ||
"version": "0.27.13", | ||
"main": "out/index.js", | ||
@@ -20,6 +20,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/code-gen": "^0.27.12", | ||
"@volar/shared": "^0.27.12", | ||
"@volar/source-map": "^0.27.12", | ||
"@volar/transforms": "^0.27.12", | ||
"@volar/code-gen": "^0.27.13", | ||
"@volar/shared": "^0.27.13", | ||
"@volar/source-map": "^0.27.13", | ||
"@volar/transforms": "^0.27.13", | ||
"pug-lexer": "^5.0.1", | ||
@@ -29,3 +29,3 @@ "pug-parser": "^6.0.0", | ||
}, | ||
"gitHead": "b4751b90ecc4b3f4b917f3ad563709fec54fc3ca" | ||
"gitHead": "50e802db49e28c2da1c74be9bcfb6cd4d75c0ad6" | ||
} |
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
24262
524
Updated@volar/code-gen@^0.27.13
Updated@volar/shared@^0.27.13
Updated@volar/source-map@^0.27.13
Updated@volar/transforms@^0.27.13