Skip to content

Commit ed7d59c

Browse files
committed
Fix diagnostic range
1 parent c101733 commit ed7d59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/project/scope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class NamespaceManager {
3030
// Check higher scopes for shadowed declarations
3131
checkItem = this.names.get(item.identifierCapability.name)
3232
if (!!checkItem && !checkItem.equals(item)) {
33-
pushDiagnostic(new ShadowDeclarationDiagnostic(item.context.range));
33+
pushDiagnostic(new ShadowDeclarationDiagnostic(item.identifierCapability.range));
3434
return;
3535
}
3636
this.names.set(item.identifierCapability.name, item);

0 commit comments

Comments
 (0)