Skip to content

Conversation

@rcjsuen
Copy link
Collaborator

@rcjsuen rcjsuen commented Mar 21, 2025

We have a lot of support for textDocument/definition requests for attributes within a target block. Some of them assumed that these attributes would only ever be found on a target block so if they were replicated inside a different block (such as group or variable) then the textDocument/definition request would still get results back.

Additional checks have now been introduced to ensure that we only respond to those requests if they were sent for a position inside a target block.

We have a lot of support for textDocument/definition requests for
attributes within a target block. Some of them assumed that these
attributes would only ever be found on a target block so if they were
replicated inside a different block (such as group or variable) then the
textDocument/definition request would still get results back. Additional
checks have now been introduced to ensure that we only respond to those
requests if they were sent for a position inside a target block.

Signed-off-by: Remy Suen <[email protected]>
@rcjsuen rcjsuen self-assigned this Mar 21, 2025
@rcjsuen rcjsuen merged commit 60437d0 into main Mar 21, 2025
8 checks passed
@rcjsuen rcjsuen deleted the check-target-attribute-definition-requests branch March 21, 2025 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants