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

Exclude non-identifier aliases from completion filtering text #15348

Merged
merged 6 commits into from Aug 2, 2023

Conversation

max-heller
Copy link
Contributor

When building CompletionItems, this excludes aliases that aren't valid identifiers from the "lookup" text used to filter completions in the LSP client. Including them results in weird completion filtering behavior e.g. Partial> matching a completion for the PartialOrd trait because it has a doc alias of ">".

Closes #14692

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 27, 2023
crates/ide-completion/src/item.rs Outdated Show resolved Hide resolved
crates/ide-completion/Cargo.toml Outdated Show resolved Hide resolved
crates/ide-completion/src/item.rs Outdated Show resolved Hide resolved
crates/ide-completion/src/item.rs Outdated Show resolved Hide resolved
max-heller and others added 4 commits July 28, 2023 09:22
Co-authored-by: LowR <low.ryoshida@gmail.com>
@Veykril Veykril added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 1, 2023
@max-heller
Copy link
Contributor Author

@rustbot label -S-waiting-on-author +S-waiting-on-review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 1, 2023
@max-heller max-heller requested review from Veykril and lowr August 1, 2023 22:20
@lowr
Copy link
Contributor

lowr commented Aug 2, 2023

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 2, 2023

📌 Commit a743903 has been approved by lowr

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 2, 2023

⌛ Testing commit a743903 with merge 2f2cf21...

@bors
Copy link
Collaborator

bors commented Aug 2, 2023

☀️ Test successful - checks-actions
Approved by: lowr
Pushing 2f2cf21 to master...

@bors bors merged commit 2f2cf21 into rust-lang:master Aug 2, 2023
10 checks passed
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.

Ignore doc aliases for completions that have non identifier names
5 participants