-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[IDE] Complete nonisolated
, unowned
, and access control attribute parameter
#79974
[IDE] Complete nonisolated
, unowned
, and access control attribute parameter
#79974
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great PR. Thank you, @a7medev 🙏🏽
I left a few comments inline. The next steps would be to add some tests for these new completions in test/IDE
.
This fixes an issue where valid parenthesized modifiers like nonisolated(unsafe) get misinterpreted as function calls.
nonisolated
, unowned
, and access control attribute parameternonisolated
, unowned
, and access control attribute parameter
@ahoppen Thanks for the thorough review. 🙏🏼 I've addressed the added comments and added the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the tests as well. Two more minor comments, otherwise this looks great to me.
…` rather than completion callback
@ahoppen I've addressed the added comments. Can you please re-review? 🙏🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Looks good to me. I’ll trigger CI and if it passes, I’ll merge the PR.
@swift-ci Please smoke test |
@ahoppen I see the CI jobs for Linux and Windows are failing. I checked the output and found a similar error for both of them: |
The failure should be gone with swiftlang/swift-integration-tests#156. |
@swift-ci Please smoke test Linux |
@swift-ci Please test Windows |
Description
Added code completion support for:
nonisolated(unsafe)
unowned(safe)
unowned(unsafe)
<access-control>(set)
(e.g.private(set)
)