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

fix: filtering of self references for cross-file references #105

Merged
merged 2 commits into from
Mar 14, 2022

Conversation

radeksimko
Copy link
Member

As demonstrated by the attached test this fixes a case of completion of references where we intend to filter out external self-references to the outer block itself when the completion is requested within the block. Previously we'd only be comparing the range of completion and reference, without considering the filename.

Related: hashicorp/terraform-ls#646

@radeksimko radeksimko added the bug Something isn't working label Mar 14, 2022
@radeksimko radeksimko self-assigned this Mar 14, 2022
@radeksimko radeksimko requested a review from a team March 14, 2022 13:10
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense! Good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants