Skip to content
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

Merged

Conversation

a7medev
Copy link
Contributor

@a7medev a7medev commented Mar 13, 2025

Description

Added code completion support for:

  • nonisolated(unsafe)
  • unowned(safe)
  • unowned(unsafe)
  • <access-control>(set) (e.g. private(set))

Copy link
Member

@ahoppen ahoppen left a 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.

@a7medev a7medev requested a review from ahoppen March 13, 2025 20:02
@a7medev a7medev changed the title [WIP] [IDE] Complete nonisolated, unowned, and access control attribute parameter [IDE] Complete nonisolated, unowned, and access control attribute parameter Mar 14, 2025
@a7medev
Copy link
Contributor Author

a7medev commented Mar 14, 2025

@ahoppen Thanks for the thorough review. 🙏🏼 I've addressed the added comments and added the tests.
Can you please re-review the PR? 🙏🏼

Copy link
Member

@ahoppen ahoppen left a 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.

@a7medev
Copy link
Contributor Author

a7medev commented Mar 14, 2025

@ahoppen I've addressed the added comments. Can you please re-review? 🙏🏼

@a7medev a7medev requested a review from ahoppen March 14, 2025 11:27
Copy link
Member

@ahoppen ahoppen left a 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.

@ahoppen
Copy link
Member

ahoppen commented Mar 14, 2025

@swift-ci Please smoke test

@ahoppen ahoppen enabled auto-merge March 14, 2025 23:19
@a7medev
Copy link
Contributor Author

a7medev commented Mar 15, 2025

@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: "error: cannot find 'PollIndexRequest' in scope" in BackgroundIndexingTests.swift for SourceKit LSP. I'm not sure exactly what's the cause for it but looking at other PRs I found some CI failures with the same error so I'm suspecting it's either flaky or missing some kind of configuration. What do you think?

@ahoppen
Copy link
Member

ahoppen commented Mar 17, 2025

The failure should be gone with swiftlang/swift-integration-tests#156.

@ahoppen
Copy link
Member

ahoppen commented Mar 17, 2025

@swift-ci Please smoke test Linux

@ahoppen
Copy link
Member

ahoppen commented Mar 17, 2025

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 829e03c into swiftlang:main Mar 17, 2025
3 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