We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6b59e3 commit 5569f84Copy full SHA for 5569f84
1 file changed
Core/Sources/SuggestionWidget/FeatureReducers/ChatPanel.swift
@@ -80,6 +80,7 @@ public struct ChatPanel {
80
case chatTab(id: String, action: ChatTabItem.Action)
81
}
82
83
+ @Dependency(\.chatTabPool) var chatTabPool
84
@Dependency(\.suggestionWidgetControllerDependency) var suggestionWidgetControllerDependency
85
@Dependency(\.xcodeInspector) var xcodeInspector
86
@Dependency(\.activatePreviousActiveXcode) var activatePreviouslyActiveXcode
@@ -197,6 +198,7 @@ public struct ChatPanel {
197
198
return max(nextIndex, 0)
199
}()
200
state.chatTabGroup.tabInfo.removeAll { $0.id == id }
201
+ chatTabPool.getTab(of: id)?.close()
202
if state.chatTabGroup.tabInfo.isEmpty {
203
state.isPanelDisplayed = false
204
0 commit comments