Skip to content

Add optional delegate perameter to Workspace.create() #3146

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
merged 1 commit into from
Jan 5, 2021

Conversation

krzyzanowskim
Copy link
Contributor

@krzyzanowskim krzyzanowskim commented Dec 26, 2020

Add optional delegate parameter to Workspace.create()

Motivation:

Workspace.create is a convenient way to instantiate a Workspace instance. However can't use it if want to use WorkspaceDelegate - that is unfortunate. Workspace.delegate is a let property, hence it can't be set after initialization.

Modifications:

Add optional delegate perameter to Workspace.create()

Ref https://bugs.swift.org/browse/SR-4402

@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 94ed833 into swiftlang:main Jan 5, 2021
@krzyzanowskim krzyzanowskim deleted the marcin/workspace-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.

3 participants