File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Core/Sources/SuggestionWidget/FeatureReducers Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import ComposableArchitecture
2+ import Environment
23import Foundation
34import PromptToCodeService
45import SuggestionModel
5- import Environment
6+ import XcodeInspector
67
78public struct PromptToCodeGroup : ReducerProtocol {
89 public struct State : Equatable {
910 public var promptToCodes : IdentifiedArrayOf < PromptToCode . State > = [ ]
10- public var activeDocumentURL : PromptToCode . State . ID ?
11+ public var activeDocumentURL : PromptToCode . State . ID ? = XcodeInspector . shared
12+ . realtimeActiveDocumentURL
1113 public var activePromptToCode : PromptToCode . State ? {
1214 get {
1315 if let detached = promptToCodes. first ( where: { !$0. isAttachedToSelectionRange } ) {
Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ public struct WidgetFeature: ReducerProtocol {
331331
332332 return . run { send in
333333 await send ( . observeEditorChange)
334+ await send ( . panel( . switchToAnotherEditorAndUpdateContent) )
334335
335336 for await notification in notifications {
336337 try Task . checkCancellation ( )
You can’t perform that action at this time.
0 commit comments