Skip to content

Remove ref_match from CompletionItem #8393

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

Closed

Conversation

JoshMcguigan
Copy link
Contributor

This PR makes two changes:

  1. Remove the ref_match field from CompletionItem
  2. Move the responsibility for finding reference completions from render to completion

I discussed doing this in #8058, as a step toward fixing the problem where we put the reference completion in the wrong place for struct fields.

However, after implementing this, I'm not sure it improves on the existing code. I'm concerned that this implementation spreads the responsibility for reference completion around to too many places. Instead of this, next I want to try adding some kind of marker for where the reference would go in the ref_match field. I don't intend to merge this PR, just wanted to open it as a draft in case there was any question about what this might look like.

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.

1 participant