Skip to content

Commit

Permalink
fix(vscode-pv-handlebars-language-server): add support for ui and eve…
Browse files Browse the repository at this point in the history
…nts info

fix duplicate reports when the tag matched
  • Loading branch information
mbehzad committed Sep 12, 2024
1 parent e439f77 commit 281d93a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export async function codelensProvider(textDocument: TextDocument) {
.split(" ")
// check if one is the same as the ui selector
.includes(selector.replace(/^./, ""));
const tagMatch = match.groups!.tagName === selector;

// ignore the tag matches for the classNames rgx because it is already catch by the tags rgx already.
const tagMatch = !("className" in match.groups!) && match.groups!.tagName === selector;
if (classMatch || tagMatch) {
const line = content.substring(0, match.index).split("\n").length - 1;

Expand Down

0 comments on commit 281d93a

Please sign in to comment.