We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 350a91d commit b2b6bf0Copy full SHA for b2b6bf0
Core/Sources/SuggestionWidget/FeatureReducers/PromptToCodeGroup.swift
@@ -2,6 +2,7 @@ import ComposableArchitecture
2
import Foundation
3
import PromptToCodeService
4
import SuggestionModel
5
+import Environment
6
7
public struct PromptToCodeGroup: ReducerProtocol {
8
public struct State: Equatable {
@@ -130,7 +131,9 @@ public struct PromptToCodeGroup: ReducerProtocol {
130
131
switch action {
132
case .cancelButtonTapped:
133
state.promptToCodes.remove(id: id)
- return .none
134
+ return .run { _ in
135
+ try await Environment.makeXcodeActive()
136
+ }
137
default:
138
return .none
139
}
0 commit comments