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: handle empty table in additionalTextEdits #99

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

eero-lehtinen
Copy link
Contributor

Rust-analyzer, unlike many other LSPs, returns an empty table instead of nil in additionalTextEdits when it wants to resolve, so we need to check for that too.

For me auto imports and other rust-analyzer edits like x.some -> Some(x) were broken but fixed by this.

@eero-lehtinen eero-lehtinen changed the title Fix additionalTextEdits with rust-analyzer fix: handle additionalTextEdits correctly with rust-analyzer Oct 12, 2024
@eero-lehtinen eero-lehtinen changed the title fix: handle additionalTextEdits correctly with rust-analyzer fix: handle empty table in additionalTextEdits Oct 12, 2024
@Saghen Saghen merged commit 65e9605 into Saghen:main Oct 12, 2024
@Saghen
Copy link
Owner

Saghen commented Oct 12, 2024

Thanks!

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