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

[CodeComplete] Avoid let/var completions in a few cases #67704

Merged
merged 1 commit into from Aug 3, 2023

Conversation

hamishknight
Copy link
Collaborator

Don't suggest let or var in e.g the sequence expression of a for loop, or after a return. We ought to do a better job of checking whether we're in expression position before suggesting these (as opposed to a pattern), but I'm leaving that as future work for now.

Don't suggest `let` or `var` in e.g the sequence
expression of a `for` loop, or after a `return`.
We ought to do a better job of checking whether
we're in expression position before suggesting
these (as opposed to a pattern), but I'm leaving
that as future work for now.
@hamishknight
Copy link
Collaborator Author

@swift-ci please test

@ahoppen
Copy link
Contributor

ahoppen commented Aug 3, 2023

Hopefully we can just remove all the keyword completions in sourcekitd once we have apple/swift-syntax#1014.

@hamishknight hamishknight merged commit 04f6f84 into apple:main Aug 3, 2023
5 checks passed
@hamishknight hamishknight deleted the not-legally-binding branch August 3, 2023 18:43
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