Skip to content

Commit 8713afa

Browse files
authored
Merge pull request #2379 from ahoppen/log-unkown-notification
Log an error when ignoring an unknown notification sent by the client
2 parents 9c145fd + 0c8ae92 commit 8713afa

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)