Skip to content

[5.5][CodeCompletion] Keep completion status when parsing postfix types #37876

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 11, 2021

Cherry-pick #37874 into release/5.5

  • Explanation: Previously, code completion inside optional type (i.e. let _: (<HERE>)? didn't work if the completion happens outside function bodies. That was because, in parser, we didn't propagate the parser status to indicate a completion is happening
  • Scope: Code completion at type position
  • Risk: Low
  • Testing: Added regression test cases
  • Issue: rdar://78779049
  • Reviewer: Ben Langmuir (@benlangmuir)

@rintaro rintaro requested a review from a team as a code owner June 11, 2021 03:01
@rintaro
Copy link
Member Author

rintaro commented Jun 11, 2021

@swift-ci Please test

@rintaro rintaro added the r5.5 label Jun 11, 2021
@rintaro
Copy link
Member Author

rintaro commented Jun 17, 2021

@swift-ci Please nominate

e.g. optional type.

rdar://78779049
(cherry picked from commit 6048d81)
@rintaro rintaro force-pushed the 5.5-ide-completion-optionaltype-rdar78779049 branch from c8e66a6 to d5ef83e Compare June 25, 2021 17:31
@rintaro
Copy link
Member Author

rintaro commented Jun 25, 2021

@swift-ci Please test

@rintaro rintaro merged commit 842e42b into swiftlang:release/5.5 Jun 25, 2021
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants