File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Sources/LanguageServerProtocolJSONRPC Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,7 @@ public final class JSONRPCConection {
140
140
// Setup callback for response type.
141
141
decoder. userInfo [ . responseTypeCallbackKey] = { id in
142
142
guard let outstanding = self . outstandingRequests [ id] else {
143
- // Unknown request!
144
- // FIXME: Log
143
+ log ( " Unknown request for \( id) " , level: . error)
145
144
return nil
146
145
}
147
146
return outstanding. responseType
@@ -207,15 +206,13 @@ public final class JSONRPCConection {
207
206
request. _handle ( receiveHandler!, id: id, connection: self )
208
207
case . response( let response, id: let id) :
209
208
guard let outstanding = outstandingRequests. removeValue ( forKey: id) else {
210
- // Unknown request!
211
- // FIXME: Log
209
+ log ( " Unknown request for \( id) " , level: . error)
212
210
return
213
211
}
214
212
outstanding. replyHandler ( . success( response) )
215
213
case . errorResponse( let error, id: let id) :
216
214
guard let outstanding = outstandingRequests. removeValue ( forKey: id) else {
217
- // Unknown request!
218
- // FIXME: Log
215
+ log ( " Unknown request for \( id) " , level: . error)
219
216
return
220
217
}
221
218
outstanding. replyHandler ( . failure( error) )
You can’t perform that action at this time.
0 commit comments