Skip to content

feat: add #[doc(alias(..))]-based field and function completions #14513

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

Merged
merged 5 commits into from
Apr 24, 2023

Conversation

hecatia-elegua
Copy link
Contributor

@hecatia-elegua hecatia-elegua commented Apr 6, 2023

Follow-up on #14433
We can now complete fields, functions and some use/mods.
Flyimports don't behave, I don't really have the time to understand the structure there either.
While reading the flyimport code, I removed one method only used there, the closure-tree was a bit confusing, I can revert that if you want.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 6, 2023
@hecatia-elegua
Copy link
Contributor Author

The flyimport fuzzy-search would also need to search for the aliases, but after trying for an hour or more I didn't really get that working. There were some more ways I could've tried, but they would've involved many callsites again. The alias is at least rendered when you type the real name.

* removes one method breaking the flow
@hecatia-elegua hecatia-elegua force-pushed the alias-based-completion2 branch from 127560a to 33ee157 Compare April 6, 2023 15:25
@hecatia-elegua hecatia-elegua changed the title Alias based completion round 2 doc(alias)-based completion round 2 Apr 7, 2023
@Veykril Veykril self-assigned this Apr 11, 2023
@bors
Copy link
Contributor

bors commented Apr 11, 2023

☔ The latest upstream changes (presumably #14549) made this pull request unmergeable. Please resolve the merge conflicts.

@hecatia-elegua
Copy link
Contributor Author

This is done btw, @Veykril if you got some time

@Veykril
Copy link
Member

Veykril commented Apr 24, 2023

I wouldn't touch the flyimport stuff for now, it's already fairly complex (and slow) as is.
@bors r+

@bors
Copy link
Contributor

bors commented Apr 24, 2023

📌 Commit 398af02 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 24, 2023

⌛ Testing commit 398af02 with merge 420a038...

@bors
Copy link
Contributor

bors commented Apr 24, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 420a038 to master...

@bors bors merged commit 420a038 into rust-lang:master Apr 24, 2023
@lnicola lnicola changed the title doc(alias)-based completion round 2 feat: add #[doc(alias(..))]-based field and function completions Apr 24, 2023
@hecatia-elegua hecatia-elegua deleted the alias-based-completion2 branch May 10, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants