Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure retrieval of closest subject definition #1699

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

glopesdev
Copy link
Member

@glopesdev glopesdev commented Feb 29, 2024

This PR fixes the search command for retrieving subject definitions in the case of subject redefinition. In this case subject definitions with the same name will appear in multiple locations along the call context stack. Previously we were looking for the last definition, however because the search data structure is a LIFO the closest definition is actually the first definition at the top of the stack.

Fixes #1586

@glopesdev glopesdev added the fix Pull request that fixes an issue label Feb 29, 2024
@glopesdev glopesdev merged commit 63e6234 into bonsai-rx:main Feb 29, 2024
3 checks passed
@glopesdev glopesdev deleted the issue-1586 branch February 29, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go to definition command does not find the closest subject in Defer
1 participant