Skip to content

Workspace delegate weak property #3148

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

krzyzanowskim
Copy link
Contributor

Make the Workspace.delegate property weak optional. It doesn't have to be captured with strong reference (It's unlike for delegate pattern to retain)

Motivation:

Initialize the Workspace.delegate separately at any point. Ref: https://bugs.swift.org/browse/SR-4402

Modifications:

Workspace.delegate is weak property now. That means if any code relies on the retain, need update.

@tomerd
Copy link
Contributor

tomerd commented Dec 26, 2020

@swift-ci please smoke test

@tomerd tomerd self-assigned this Dec 26, 2020
@tomerd tomerd assigned neonichu and unassigned tomerd Jan 2, 2021
@tomerd
Copy link
Contributor

tomerd commented Jan 5, 2021

@swift-ci please smoke test macOS Platform

@tomerd tomerd added the ready Author believes the PR is ready to be merged & any feedback has been addressed label Jan 5, 2021
@tomerd tomerd merged commit 4dfc759 into swiftlang:main Jan 5, 2021
@krzyzanowskim krzyzanowskim deleted the marcin/workspace-weak-delegate branch January 5, 2021 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Author believes the PR is ready to be merged & any feedback has been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants