File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,19 @@ final actor WorkDoneProgressManager {
51
51
/// The last status that was sent to the client. Used so we don't send no-op updates to the client.
52
52
private var lastStatus : Status ? = nil
53
53
54
+ /// Needed to work around rdar://116221716
55
+ private static func getServerCapabilityRegistry( _ server: SourceKitLSPServer ) async -> CapabilityRegistry ? {
56
+ return await server. capabilityRegistry
57
+ }
58
+
54
59
init ? (
55
60
server: SourceKitLSPServer ,
56
61
initialDebounce: Duration ? = nil ,
57
62
title: String ,
58
63
message: String ? = nil ,
59
64
percentage: Int ? = nil
60
65
) async {
61
- guard let capabilityRegistry = await server . capabilityRegistry else {
66
+ guard let capabilityRegistry = await Self . getServerCapabilityRegistry ( server ) else {
62
67
return nil
63
68
}
64
69
self . init (
You can’t perform that action at this time.
0 commit comments