Skip to content

Commit 9b75b43

Browse files
committed
Add todos
1 parent 20b560f commit 9b75b43

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ public struct WidgetFeature: ReducerProtocol {
350350
let documentURL = state.focusingDocumentURL
351351

352352
let notifications = app.axNotifications
353+
354+
#warning("TODO: Handling events outside of TCA because the fire rate is too high.")
353355

354356
return .run { send in
355357
await send(.observeEditorChange)
@@ -522,7 +524,6 @@ public struct WidgetFeature: ReducerProtocol {
522524
}
523525
}
524526

525-
#warning("TODO: control windows in their dedicated reducers.")
526527
case let .updateWindowOpacity(immediately):
527528
let isChatPanelDetached = state.chatPanelState.chatPanelInASeparateWindow
528529
let hasChat = !state.chatPanelState.chatTabGroup.tabInfo.isEmpty

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ public extension SuggestionWidgetController {
239239
store.send(.panel(.discardSuggestion))
240240
}
241241

242+
#warning("TODO: Make a progress controller that doesn't use TCA.")
242243
func markAsProcessing(_ isProcessing: Bool) {
243244
store.withState { state in
244245
if isProcessing, !state.circularWidgetState.isProcessing {

Tool/Sources/WorkspaceSuggestionService/Filespace+SuggestionService.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import SuggestionModel
33
import Workspace
44

55
public struct FilespaceSuggestionSnapshot: Equatable {
6+
#warning("TODO: Can we remove it?")
67
public var linesHash: Int
78
public var cursorPosition: CursorPosition
89

0 commit comments

Comments
 (0)