Skip to content

Commit 59cc291

Browse files
committed
Don’t log a fault if the publish diagnostics notification is cancelled
Cancelling the publish diagnostics notificaiton because there was an edit is totally normal and nothing to be logged at the `fault` level.
1 parent a1f909a commit 59cc291

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SourceKitLSP/Swift/SwiftLanguageServer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ extension SwiftLanguageServer {
402402
diagnostics: diagnosticReport.items
403403
)
404404
)
405+
} catch is CancellationError {
405406
} catch {
406407
logger.fault("""
407408
Failed to get diagnostics

0 commit comments

Comments
 (0)