Skip to content

Backport "Improve completions when a lot of exports are present" to 3.7.2 #23542

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 16, 2025

Conversation

WojciechMazur
Copy link
Contributor

@WojciechMazur WojciechMazur commented Jul 16, 2025

Backports #23414 to the 3.7.2-RC2.

PR submitted by the release tooling.
[skip ci]

The body of isLegalPrefix used to read:

    pre.isStable || !ctx.phase.isTyper

but was changed to drop the second condition in #21954 (originally included in
3.6.4-RC1, reverted from 3.6.4 final but back in 3.7). This has led to a
number of regressions, the last ones discussed in #23423.

To make the testcases added in #21594 pass, this PR proposes a less drastic
change: relax isLegalPrefix as before, unless we're doing an implicit search.
This should dramatically reduce the possibility for regressions.

Fixes #23423.
Fixes #22676.

[Cherry-picked 2e4bc0a]
@WojciechMazur WojciechMazur self-assigned this Jul 16, 2025
@WojciechMazur WojciechMazur merged commit 0047376 into release-3.7.2 Jul 16, 2025
50 of 52 checks passed
@WojciechMazur WojciechMazur deleted the backport-release-3.7.2-23438 branch July 16, 2025 20:56
@WojciechMazur WojciechMazur changed the title Backport "Fix regressions in asSeenFrom introduced in 3.7" to 3.7.2 Backport "Improve completions when a lot of exports are present" to 3.7.2 Jul 17, 2025
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