Skip to content

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

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
Aug 3, 2023

Conversation

hamishknight
Copy link
Contributor

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
Contributor Author

@swift-ci please test

@ahoppen
Copy link
Member

ahoppen commented Aug 3, 2023

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

@hamishknight hamishknight merged commit 04f6f84 into swiftlang:main Aug 3, 2023
@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.

2 participants