File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ private let notificationTypes: [NotificationType.Type] = [
4141]
4242
4343extension MessageRegistry {
44- public static var bspProtocol : MessageRegistry {
44+ public static let bspProtocol : MessageRegistry =
4545 MessageRegistry ( requests: requestTypes, notifications: notificationTypes)
46- }
4746}
4847
4948@available ( * , deprecated, message: " use MessageRegistry.bspProtocol instead " )
50- public let bspRegistry = MessageRegistry ( requests : requestTypes , notifications : notificationTypes )
49+ public var bspRegistry : MessageRegistry { MessageRegistry . bspProtocol }
Original file line number Diff line number Diff line change 1111//===----------------------------------------------------------------------===//
1212
1313public final class MessageRegistry : Sendable {
14-
15- public static let lspProtocol : MessageRegistry =
16- MessageRegistry ( requests: builtinRequests, notifications: builtinNotifications)
17-
1814 private let methodToRequest : [ String : _RequestType . Type ]
1915 private let methodToNotification : [ String : NotificationType . Type ]
2016
Original file line number Diff line number Diff line change @@ -128,6 +128,11 @@ public let builtinNotifications: [NotificationType.Type] = [
128128 WorkDoneProgress . self,
129129]
130130
131+ extension MessageRegistry {
132+ public static let lspProtocol : MessageRegistry =
133+ MessageRegistry ( requests: builtinRequests, notifications: builtinNotifications)
134+ }
135+
131136// MARK: Miscellaneous Message Types
132137
133138public struct VoidResponse : ResponseType , Hashable {
You can’t perform that action at this time.
0 commit comments