Skip to content

Commit

Permalink
fix: intrinsic tag highlight should only includes open and close tag
Browse files Browse the repository at this point in the history
close #2009
  • Loading branch information
johnsoncodehk committed Oct 15, 2022
1 parent 7464536 commit d2c9064
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -13,7 +13,10 @@ export function register(context: LanguageServiceRuntimeContext) {
context,
uri,
position,
(position, sourceMap) => sourceMap.toGeneratedPositions(position, data => !!data.references),
(position, sourceMap) => sourceMap.toGeneratedPositions(position,
// note https://github.com/johnsoncodehk/volar/issues/2009
data => typeof data.rename === 'object' ? !!data.rename.normalize : !!data.rename
),
async (plugin, document, position, sourceMap, vueDocument) => {

const recursiveChecker = dedupe.createLocationSet();
Expand Down

0 comments on commit d2c9064

Please sign in to comment.