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

Don’t let other completions shadow type keywords in type locations #48939

Merged
merged 2 commits into from
May 4, 2022

Conversation

andrewbranch
Copy link
Member

Fixes #48075

As part of this fix, I started to implement a lot more keyword filtering than we currently do (type keywords are normally offered in value locations 🤦‍♂️), but stopped when it became clear that it was going to be a significant change late in the release cycle. I hope to pick that back up for 4.8.

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels May 3, 2022
@andrewbranch andrewbranch requested a review from gabritto May 3, 2022 17:50
@@ -164,7 +164,7 @@ namespace ts.Completions {
TypeAssertionKeywords,
TypeKeywords,
TypeKeyword, // Literally just `type`
Last = TypeKeywords
Last = TypeKeyword
Copy link
Member

Choose a reason for hiding this comment

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

😅 oof, who even uses Last?

@andrewbranch andrewbranch merged commit d879880 into microsoft:main May 4, 2022
@andrewbranch andrewbranch deleted the bug/48075-2 branch May 4, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript incorrectly auto-importing string from fp-ts.
5 participants