vscode-vue-languageservice
Advanced tools
Comparing version 0.27.5 to 0.27.6
@@ -10,8 +10,14 @@ "use strict"; | ||
const nodeText = docText.substring(node.offset, node.end); | ||
const reg = /^v-bind\s*\(\s*(\S*)\s*\)$/; | ||
const match = nodeText.match(reg); | ||
if (match) { | ||
const matchText = match[1]; | ||
const offset = node.offset + nodeText.lastIndexOf(matchText); | ||
result.push({ start: offset, end: offset + matchText.length }); | ||
const reg = /v-bind\s*\(\s*([^\s\)]*)\s*\)/g; | ||
const matchs = nodeText.matchAll(reg); | ||
for (const match of matchs) { | ||
if (match.index !== undefined) { | ||
let matchText = match[1]; | ||
if (matchText.startsWith('"') && matchText.endsWith('"') | ||
|| matchText.startsWith("'") && matchText.endsWith("'")) { | ||
matchText = matchText.substring(1, matchText.length - 1); | ||
} | ||
const offset = node.offset + match.index + nodeText.substr(match.index).indexOf(matchText); | ||
result.push({ start: offset, end: offset + matchText.length }); | ||
} | ||
} | ||
@@ -18,0 +24,0 @@ } |
@@ -59,3 +59,3 @@ "use strict"; | ||
title: referencesCount === 1 ? '1 reference' : `${referencesCount} references`, | ||
command: commands_1.Commands.SHOW_REFERENCES, | ||
command: canShowReferences ? commands_1.Commands.SHOW_REFERENCES : '', | ||
arguments: [uri, codeLens.range.start, vueReferences], | ||
@@ -62,0 +62,0 @@ }; |
@@ -299,5 +299,5 @@ "use strict"; | ||
}; | ||
function parseMappingSourceRange(data, range) { | ||
function parseMappingSourceRange(data /* TODO */, range) { | ||
var _a, _b; | ||
if (data.vueTag === 'style' && data.vueTagIndex !== undefined) { | ||
if ((data === null || data === void 0 ? void 0 : data.vueTag) === 'style' && (data === null || data === void 0 ? void 0 : data.vueTagIndex) !== undefined) { | ||
return { | ||
@@ -304,0 +304,0 @@ start: styles.value[data.vueTagIndex].loc.start + range.start, |
{ | ||
"name": "vscode-vue-languageservice", | ||
"version": "0.27.5", | ||
"version": "0.27.6", | ||
"main": "out/index.js", | ||
@@ -19,7 +19,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/code-gen": "^0.27.5", | ||
"@volar/html2pug": "^0.27.5", | ||
"@volar/shared": "^0.27.5", | ||
"@volar/source-map": "^0.27.5", | ||
"@volar/transforms": "^0.27.5", | ||
"@volar/code-gen": "^0.27.6", | ||
"@volar/html2pug": "^0.27.6", | ||
"@volar/shared": "^0.27.6", | ||
"@volar/source-map": "^0.27.6", | ||
"@volar/transforms": "^0.27.6", | ||
"@vscode/emmet-helper": "^2.7.0", | ||
@@ -37,6 +37,6 @@ "@vue/compiler-dom": "^3.2.4", | ||
"vscode-languageserver-textdocument": "^1.0.1", | ||
"vscode-pug-languageservice": "^0.27.5", | ||
"vscode-typescript-languageservice": "^0.27.5" | ||
"vscode-pug-languageservice": "^0.27.6", | ||
"vscode-typescript-languageservice": "^0.27.6" | ||
}, | ||
"gitHead": "4cd2177431ecc6b163efc9021104413b244339d7" | ||
"gitHead": "f67034fead23f07a4bc3d6bfbc53b006ae1e9a40" | ||
} |
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
662108
13665
Updated@volar/code-gen@^0.27.6
Updated@volar/html2pug@^0.27.6
Updated@volar/shared@^0.27.6
Updated@volar/source-map@^0.27.6
Updated@volar/transforms@^0.27.6