@@ -102,7 +102,6 @@ import {
102
102
OutliningSpan ,
103
103
PasteEdits ,
104
104
Path ,
105
- perfLogger ,
106
105
PerformanceEvent ,
107
106
PossibleProgramFileInfo ,
108
107
Program ,
@@ -1206,7 +1205,6 @@ export class Session<TMessage = string> implements EventSender {
1206
1205
1207
1206
protected writeMessage ( msg : protocol . Message ) {
1208
1207
const msgText = formatMessage ( msg , this . logger , this . byteLength , this . host . newLine ) ;
1209
- perfLogger ?. logEvent ( `Response message size: ${ msgText . length } ` ) ;
1210
1208
this . host . write ( msgText ) ;
1211
1209
}
1212
1210
@@ -3698,7 +3696,6 @@ export class Session<TMessage = string> implements EventSender {
3698
3696
relevantFile = request . arguments && ( request as protocol . FileRequest ) . arguments . file ? ( request as protocol . FileRequest ) . arguments : undefined ;
3699
3697
3700
3698
tracing ?. instant ( tracing . Phase . Session , "request" , { seq : request . seq , command : request . command } ) ;
3701
- perfLogger ?. logStartCommand ( "" + request . command , this . toStringMessage ( message ) . substring ( 0 , 100 ) ) ;
3702
3699
3703
3700
tracing ?. push ( tracing . Phase . Session , "executeCommand" , { seq : request . seq , command : request . command } , /*separateBeginAndEnd*/ true ) ;
3704
3701
const { response, responseRequired } = this . executeCommand ( request ) ;
@@ -3715,7 +3712,6 @@ export class Session<TMessage = string> implements EventSender {
3715
3712
}
3716
3713
3717
3714
// Note: Log before writing the response, else the editor can complete its activity before the server does
3718
- perfLogger ?. logStopCommand ( "" + request . command , "Success" ) ;
3719
3715
tracing ?. instant ( tracing . Phase . Session , "response" , { seq : request . seq , command : request . command , success : ! ! response } ) ;
3720
3716
if ( response ) {
3721
3717
this . doOutput ( response , request . command , request . seq , /*success*/ true ) ;
@@ -3730,14 +3726,12 @@ export class Session<TMessage = string> implements EventSender {
3730
3726
3731
3727
if ( err instanceof OperationCanceledException ) {
3732
3728
// Handle cancellation exceptions
3733
- perfLogger ?. logStopCommand ( "" + ( request && request . command ) , "Canceled: " + err ) ;
3734
3729
tracing ?. instant ( tracing . Phase . Session , "commandCanceled" , { seq : request ?. seq , command : request ?. command } ) ;
3735
3730
this . doOutput ( { canceled : true } , request ! . command , request ! . seq , /*success*/ true ) ;
3736
3731
return ;
3737
3732
}
3738
3733
3739
3734
this . logErrorWorker ( err , this . toStringMessage ( message ) , relevantFile ) ;
3740
- perfLogger ?. logStopCommand ( "" + ( request && request . command ) , "Error: " + err ) ;
3741
3735
tracing ?. instant ( tracing . Phase . Session , "commandError" , { seq : request ?. seq , command : request ?. command , message : ( err as Error ) . message } ) ;
3742
3736
3743
3737
this . doOutput (
0 commit comments