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 crash prefix completion with leading space #373

Merged
merged 5 commits into from
Feb 13, 2024

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Feb 12, 2024

Radek discovered this crash in the context of a function expression, but it turns out that it affects all expressions that try to infer a prefix.
This PR fixes a crash that occurred when a user tried to use auto-completion in front of a prefix, right after the =.

Closes hashicorp/terraform-ls#1606

@dbanck dbanck added the bug Something isn't working label Feb 12, 2024
@dbanck dbanck self-assigned this Feb 12, 2024
@dbanck dbanck requested a review from a team as a code owner February 12, 2024 12:50
@dbanck dbanck merged commit 37b8f08 into main Feb 13, 2024
5 checks passed
@dbanck dbanck deleted the b-fix-prefix-completion-crash branch February 13, 2024 11:15
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.

Crash during completion in front of non-empty [ ]
2 participants