Skip to content

Commit 0c8ae92

Browse files
committed
Log an error when ignoring an unknown notification sent by the client
Just noticed that we don’t emit a log message here while reviewing the new SwiftPM BSP server.
1 parent 9c145fd commit 0c8ae92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ extension SourceKitLSPServer: QueueBasedMessageHandler {
700700
await self.withLanguageServiceAndWorkspace(for: notification, notificationHandler: self.willSaveDocument)
701701
// IMPORTANT: When adding a new entry to this switch, also add it to the `MessageHandlingDependencyTracker` initializer.
702702
default:
703-
break
703+
logger.error("Ignoring unknown notification \(type(of: notification).method)")
704704
}
705705
}
706706

0 commit comments

Comments
 (0)