File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed
Service/SuggestionCommandHandler Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
129129 defer { presenter. markAsProcessing ( false ) }
130130 let fileURL = try await Environment . fetchCurrentFileURL ( )
131131
132- if let service = WidgetDataSource . shared. promptToCodes [ fileURL] ? . promptToCodeService {
132+ if WidgetDataSource . shared. promptToCodes [ fileURL] ? . promptToCodeService != nil {
133133 WidgetDataSource . shared. removePromptToCode ( for: fileURL)
134134 presenter. closePromptToCode ( fileURL: fileURL)
135135 return
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ public struct SuggestionInjector {
142142 let suggestionContent = completion. text
143143
144144 let existedLine = start. line < content. endIndex ? content [ start. line] : nil
145- let commonPrefix = longestCommonPrefix ( of: suggestionContent, and: existedLine ?? " " )
146145
147146 let firstRemovedLine = content [ safe: start. line]
148147 let lastRemovedLine = content [ safe: end. line]
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ struct WidgetView: View {
3939 )
4040 . padding ( 2 )
4141
42- #warning("TODO: Tweak the animation")
4342 // how do I stop the repeatForever animation without removing the view?
4443 // I tried many solutions found on stackoverflow but non of them works.
4544 if viewModel. isProcessing {
You can’t perform that action at this time.
0 commit comments