Skip to content

[6.0][CodeCompletion] Remove warning for 'async in non-concurrency context' #73759

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 May 20, 2024

Cherry-pick #73628 into release/6.0

  • Explanation: Remove async *** used in a context that does not support concurrency and actor-isolated *** should only be referenced from inside the actor code completion warnings. These did't give much benefits for developers. Code completion UI tends to show them unusable. But usually, developers can modify the context to accept async calls, e.g. by wrapping it with Task { }
  • Scope: Code completion
  • Risk: Low, changes are only for code completion
  • Testing: Updated regression test cases
  • Issues: rdar://126737530
  • Reviewer: Alex Hoppen (@ahoppen) Hamish Knight (@hamishknight)

rintaro added 4 commits May 20, 2024 13:23
This warnings don't give much benefits for developers. Code completion
UI tends to show them unusable. But usually, developers can modify the
context to accept async calls, e.g. by wrapping it with `Task { }`

rdar://126737530
(cherry picked from commit 9a6770e)
Same for 'async in non-concurrency' context

(cherry picked from commit 79a7410)
@rintaro rintaro requested a review from a team as a code owner May 20, 2024 20:24
@rintaro
Copy link
Member Author

rintaro commented May 20, 2024

@swift-ci Please test

@rintaro rintaro changed the title 6.0 completion async not async rdar126737530 [6.0][CodeCompletion] Remove warning for 'async in non-concurrency context' May 20, 2024
@rintaro
Copy link
Member Author

rintaro commented May 21, 2024

@swift-ci Please test Linux

@rintaro rintaro merged commit ba7192b into swiftlang:release/6.0 May 21, 2024
5 checks passed
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