Skip to content

Commit 83ec862

Browse files
committed
Fix that codeium cancellation error is presented to UI
1 parent 4bbd5f6 commit 83ec862

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Core/Sources/Service/SuggestionPresenter/PresentInWindowSuggestionPresenter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ struct PresentInWindowSuggestionPresenter {
2828

2929
func presentError(_ error: Error) {
3030
if error is CancellationError { return }
31+
if let urlError = error as? URLError, urlError.code == URLError.cancelled { return }
3132
Task { @MainActor in
3233
let controller = GraphicalUserInterfaceController.shared.suggestionWidget
3334
controller.presentError(error.localizedDescription)

0 commit comments

Comments
 (0)