We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d609ddb commit d7bcfcdCopy full SHA for d7bcfcd
Core/Sources/SuggestionWidget/FeatureReducers/PanelFeature.swift
@@ -96,12 +96,10 @@ public struct PanelFeature: ReducerProtocol {
96
97
case .switchToAnotherEditorAndUpdateContent:
98
state.content.error = nil
99
+ state.content.suggestion = nil
100
return .run { send in
101
guard let fileURL = xcodeInspector.realtimeActiveDocumentURL else { return }
- if let suggestion = await fetchSuggestionProvider(fileURL: fileURL) {
102
- await send(.presentSuggestionProvider(suggestion, displayContent: false))
103
- }
104
-
+
105
await send(.sharedPanel(
106
.promptToCodeGroup(
107
.updateActivePromptToCode(documentURL: fileURL)
0 commit comments