vscode-markdown-languageservice
Advanced tools
Comparing version
@@ -63,8 +63,10 @@ "use strict"; | ||
const pre = targetText + preHrefText; | ||
const linkStart = document.positionAt(matchIndex); | ||
const linkEnd = (0, position_1.translatePosition)(linkStart, { characterDelta: fullMatch.length }); | ||
const targetStart = (0, position_1.translatePosition)(linkStart, { characterDelta: targetText.length }); | ||
const linkStartOffset = matchIndex; | ||
const linkStart = document.positionAt(linkStartOffset); | ||
const linkEnd = document.positionAt(linkStartOffset + fullMatch.length); | ||
const targetStart = document.positionAt(linkStartOffset + targetText.length); | ||
const targetRange = { start: targetStart, end: linkEnd }; | ||
const hrefStart = (0, position_1.translatePosition)(linkStart, { characterDelta: pre.length + (isAngleBracketLink ? 1 : 0) }); | ||
const hrefEnd = (0, position_1.translatePosition)(hrefStart, { characterDelta: link.length }); | ||
const hrefStartOffset = linkStartOffset + pre.length + (isAngleBracketLink ? 1 : 0); | ||
const hrefStart = document.positionAt(hrefStartOffset); | ||
const hrefEnd = document.positionAt(hrefStartOffset + link.length); | ||
const hrefRange = { start: hrefStart, end: hrefEnd }; | ||
@@ -71,0 +73,0 @@ return { |
{ | ||
"name": "vscode-markdown-languageservice", | ||
"description": "Markdown language service", | ||
"version": "0.5.0-alpha.8", | ||
"version": "0.5.0-alpha.9", | ||
"author": "Microsoft Corporation", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5837
0.03%278164
-0.01%1
Infinity%