Skip to content

Commit 5313928

Browse files
committed
Merge pull request #6406 from Microsoft/classifyJsxAttributes
Recognize JSX attribute during classification
2 parents 0bfc83b + c5131e6 commit 5313928

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/services.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,7 @@ namespace ts {
16401640
jsxOpenTagName = 19,
16411641
jsxCloseTagName = 20,
16421642
jsxSelfClosingTagName = 21,
1643+
jsxAttribute = 22
16431644
}
16441645

16451646
/// Language Service
@@ -6903,9 +6904,12 @@ namespace ts {
69036904
return ClassificationType.jsxSelfClosingTagName;
69046905
}
69056906
return;
6907+
case SyntaxKind.JsxAttribute:
6908+
if ((<JsxAttribute>token.parent).name === token) {
6909+
return ClassificationType.jsxAttribute;
6910+
}
69066911
}
69076912
}
6908-
69096913
return ClassificationType.identifier;
69106914
}
69116915
}

0 commit comments

Comments
 (0)