check idents in NamedArg also

This commit is contained in:
Chris Wanstrath 2025-11-06 07:41:35 -08:00
parent ea01a93563
commit 54a5fec08e

View File

@ -113,8 +113,8 @@ function getTokenType(
}
}
// Special case: Identifier in PositionalArg - check scope
if (parentTypeId === Terms.PositionalArg) {
// Special case: Identifier in PositionalArg or NamedArg- check scope
if (parentTypeId === Terms.PositionalArg || parentTypeId === Terms.NamedArg) {
const identifierText = document.getText({
start: document.positionAt(node.from),
end: document.positionAt(node.to),