diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..f86897f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +## v1.0.2 + +*2024-11-30* + +**Fixed** + +- Detection of `` definitions with non-empty content diff --git a/server/src/reference.ts b/server/src/reference.ts index b33bacc..14b5252 100644 --- a/server/src/reference.ts +++ b/server/src/reference.ts @@ -103,7 +103,7 @@ async function provide( if (definition) { const {name: n, parentNode} = token.parentNode as AttributeToken; return getRefName(token) === refName - && n === 'name' && !(parentNode!.parentNode as ExtToken).selfClosing; + && n === 'name' && (parentNode!.parentNode as ExtToken).innerText; } return type === 'attr-value' ? getRefName(token) === refName || getRefGroup(token) === refGroup