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

Autocompletion tweaks, consistency between providers #10168

Merged
merged 15 commits into from
Jul 13, 2020

Conversation

niik
Copy link
Member

@niik niik commented Jul 8, 2020

🌵 Depends upon #10121, please review that first 🌵

Description

Continuation of #10121. Attempts to provide a consistent logic between issues, user, and emoji autocompletion providers. Introduces an exact replica of the cache implemented for the user autocompletion in #10121.

@niik niik requested a review from rafeca July 9, 2020 11:11
Base automatically changed from mentionable-query-cache to development July 9, 2020 11:18
@@ -185,6 +182,7 @@ export class GitHubUserStore extends BaseStore {
.sort(
(x, y) => compare(x.ix, y.ix) || compare(x.user.login, y.user.login)
)
.slice(0, maxHits)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay! I think this is way better than the previous logic, which could discard items that would have appeared at the top of the list 😀

@rafeca rafeca merged commit cd4cc78 into development Jul 13, 2020
@rafeca rafeca deleted the autocompletion-tweaks branch July 13, 2020 10:35
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.

None yet

2 participants