Skip to content

[5.3][CodeCompletion] Assume non-'isSimpleDidSet' in code completion #32532

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 24, 2020

Cherry-pick #32528 into release/5.3

  • Explanation: As a side effect of SE-0268 implementation, Code completion stopped suggesting implicit oldValue in didSet blocks. This patch fixes the regression by retuning false from SimpleDidSetRequest in code completion mode so that the oldValue is correctly populated.
  • Scope: Code completion inside didSet block
  • Risk: Low
  • Testing: Added regression test cases
  • Issue: rdar://problem/64699286
  • Reviewer: Ben Langmuir (@benlangmuir), Suyash Srijan (@theblixguy)

@rintaro rintaro added the r5.3 label Jun 24, 2020
@rintaro rintaro requested a review from a team as a code owner June 24, 2020 20:27
@rintaro

This comment has been minimized.

Code completion always want to see implicit 'oldValue' with the correct
type. Return 'false' from 'SimpleDidSetRequest' in code completion
mode.

rdar://problem/64699286
(cherry picked from commit 21b9fc3)
@rintaro rintaro force-pushed the 5.3-ide-completion-rdar64699286 branch from 752fe6c to 064749e Compare June 24, 2020 21:15
@rintaro
Copy link
Member Author

rintaro commented Jun 24, 2020

@swift-ci Please test

@swift-ci

This comment has been minimized.

@swift-ci

This comment has been minimized.

@rintaro
Copy link
Member Author

rintaro commented Jun 24, 2020

@swift-ci Please nominate

@tkremenek tkremenek merged commit 0ab4e11 into swiftlang:release/5.3 Jun 25, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks 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.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants