Skip to content

Commit bcab207

Browse files
committed
Fix that prompt to code may not be opened by keybindings
But we really need some refactor about the widgets
1 parent 9cea9c3 commit bcab207

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

Core/Sources/SuggestionWidget/FeatureReducers/PanelFeature.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ public struct PanelFeature: ReducerProtocol {
111111

112112
case .removeDisplayedContent:
113113
state.content.error = nil
114-
state.content.promptToCodeGroup.activeDocumentURL = nil
115114
state.content.suggestion = nil
116115
return .none
117116

Core/Sources/SuggestionWidget/FeatureReducers/PromptToCodeGroup.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public struct PromptToCodeGroup: ReducerProtocol {
1919
return promptToCodes[id: id]
2020
}
2121
set {
22-
activeDocumentURL = newValue?.id
2322
if let id = newValue?.id {
2423
promptToCodes[id: id] = newValue
2524
}

0 commit comments

Comments
 (0)