mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
feat(7411): Resolve intrinsics elements by JSX namespaced tag names (#53799)
This commit is contained in:
@@ -156,6 +156,7 @@ import {
|
||||
isJsxClosingElement,
|
||||
isJsxElement,
|
||||
isJsxFragment,
|
||||
isJsxNamespacedName,
|
||||
isJsxOpeningElement,
|
||||
isJsxOpeningFragment,
|
||||
isJsxText,
|
||||
@@ -2064,6 +2065,9 @@ export function createLanguageService(
|
||||
if (isImportMeta(node.parent) && node.parent.name === node) {
|
||||
return node.parent;
|
||||
}
|
||||
if (isJsxNamespacedName(node.parent)) {
|
||||
return node.parent;
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user