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

Backport "Completion assert diffs will now show completion source" to LTS #20792

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #18890 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

Previously failed assertions showed a side by side diff of expected vs
obtained completions:

<img width="275" alt="Screenshot 2023-11-09 at 18 28 46"
src="https://github.com/lampepfl/dotty/assets/48657087/c80fbc71-7e58-4cba-b302-b4dfeff9bcec">

And now:
<img width="311" alt="Screenshot 2023-11-09 at 18 29 31"
src="https://github.com/lampepfl/dotty/assets/48657087/829933c7-31c6-4c26-a20c-4d426eb5c11b">

This is extremely useful when debugging the completions, as we have
multiple sources and finding what specific completion comes from is just
a waste of time.

There is also a chance that we'd want to not include this info in data,
but this is minimal trade-off for a significant boost when working on
PC.
[Cherry-picked e196dec]
Base automatically changed from lts-19212 to lts-3.3 June 26, 2024 09:23
@WojciechMazur
Copy link
Contributor Author

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

Reference

@WojciechMazur WojciechMazur merged commit fcd7562 into lts-3.3 Jun 26, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the lts-18890 branch June 26, 2024 09:23
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.

2 participants