File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Sources/LanguageServerProtocolExtensions Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1111//===----------------------------------------------------------------------===//
1212
1313import Dispatch
14+ import Foundation
1415package import LanguageServerProtocol
1516import LanguageServerProtocolJSONRPC
1617import SKLogging
@@ -126,20 +127,23 @@ package final class LocalConnection: Connection, Sendable {
126127 }
127128
128129 precondition ( self . state == . started)
130+ let startDate = Date ( )
129131 handler. handle ( request, id: id) { result in
130132 switch result {
131133 case . success( let response) :
132134 logger. info (
133135 """
134- Received reply for request \( id, privacy: . public) from \( self . name, privacy: . public)
136+ Received reply for request \( id, privacy: . public) from \( self . name, privacy: . public) \
137+ (took \( Date ( ) . timeIntervalSince ( startDate) * 1000 , privacy: . public) ms)
135138 \( Request . method, privacy: . public)
136139 \( response. forLogging)
137140 """
138141 )
139142 case . failure( let error) :
140143 logger. error (
141144 """
142- Received error for request \( id, privacy: . public) from \( self . name, privacy: . public)
145+ Received error for request \( id, privacy: . public) from \( self . name, privacy: . public) \
146+ (took \( Date ( ) . timeIntervalSince ( startDate) * 1000 , privacy: . public) ms)
143147 \( Request . method, privacy: . public)
144148 \( error. forLogging)
145149 """
You can’t perform that action at this time.
0 commit comments