Skip to content

Backport "Stabilise returned completions by improving deduplication + extra completions for constructors" to LTS #21061

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 1 commit into from
Jul 5, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #19976 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

…pletions for constructors (#19976)

This PR doesn't address all issues.
In the future we need to get rid of
https://github.com/scala/scala3/compare/main...rochala:improved-deduplication-and-constructors-search?expand=1#diff-035851592480495dfdb20da6b615ec7dd77b3db70cda46aba56230d8cd690773R157-R167
as it is not working as intended. The future PR of shortened type
printer refactor includes a proper way to split extension params.
`CompletionValue.Interpolator` should also be removed, and instead we
should return workspace / completions as it is now hard to sort those
completions.

Next refactor is reusing completion affix for other kinds of completions
such as case completions, so prefix / suffix is handled in single place.

This PR will unblock fuzzy search in the compiler because of stabilizing
returned completions.
[Cherry-picked 97313ed][modified]
Base automatically changed from lts-20164 to lts-3.3 July 5, 2024 21:32
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-20227.

Reference

@WojciechMazur WojciechMazur merged commit d9cdfe5 into lts-3.3 Jul 5, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the lts-19976 branch July 5, 2024 21:32
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