Skip to content

Commit 99b657b

Browse files
committed
Stop presenting LSP ServerErrors to the widget
1 parent 024b2c7 commit 99b657b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import OpenAIService
77
import SuggestionInjector
88
import SuggestionWidget
99
import XPCShared
10+
import LanguageServerProtocol
1011

1112
@ServiceActor
1213
struct WindowBaseCommandHandler: SuggestionCommandHandler {
@@ -18,6 +19,8 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
1819
Task {
1920
do {
2021
try await _presentSuggestions(editor: editor)
22+
} catch let error as ServerError {
23+
Logger.service.error(error)
2124
} catch {
2225
presenter.presentError(error)
2326
Logger.service.error(error)

0 commit comments

Comments
 (0)