@@ -1148,15 +1148,13 @@ export class ClearCase {
1148
1148
// convert backslash to slash
1149
1149
cmd . files = cmd . files . map ( ( f ) => this . wslPath ( f , false ) ) ;
1150
1150
1151
- const outputChannel = this . outputChannel ;
1152
-
1153
- outputChannel . appendLine ( cmd . getCmd ( ) . toString ( ) , LogLevel . Debug ) ;
1151
+ this . outputChannel . appendLine ( cmd . getCmd ( ) . toString ( ) , LogLevel . Debug ) ;
1154
1152
const command = spawn ( executable , cmd . getCmd ( ) , { cwd : cwd , env : process . env , detached : true } ) ;
1155
1153
1156
1154
// remove old running command
1157
1155
this . killRunningCommand ( cmdId , command . pid ) ;
1158
1156
this . mRunningCommands . set ( cmdId , command ) ;
1159
- outputChannel . appendLine ( `Command ${ cmdId } (${ command . pid } ) started` , LogLevel . Trace ) ;
1157
+ this . outputChannel . appendLine ( `Command ${ cmdId } (${ command . pid } ) started` , LogLevel . Trace ) ;
1160
1158
1161
1159
let allData : Buffer = Buffer . alloc ( 0 ) ;
1162
1160
let cmdErrMsg = "" ;
@@ -1180,19 +1178,22 @@ export class ClearCase {
1180
1178
} ) ;
1181
1179
1182
1180
command . on ( "close" , ( code , signal ) => {
1183
- outputChannel . appendLine ( `Command ${ cmdId } (${ command . pid } ), with Signal (${ signal } ) deleted` , LogLevel . Trace ) ;
1181
+ this . outputChannel . appendLine (
1182
+ `Command ${ cmdId } (${ command . pid } ), with Signal (${ signal } ) deleted` ,
1183
+ LogLevel . Trace
1184
+ ) ;
1184
1185
if ( this . mRunningCommands . has ( cmdId ) ) {
1185
1186
if ( this . mRunningCommands . get ( cmdId ) ?. pid === command . pid ) {
1186
1187
this . mRunningCommands . delete ( cmdId ) ;
1187
- outputChannel . appendLine ( `Command ${ cmdId } (${ command . pid } ) deleted` , LogLevel . Trace ) ;
1188
+ this . outputChannel . appendLine ( `Command ${ cmdId } (${ command . pid } ) deleted` , LogLevel . Trace ) ;
1188
1189
}
1189
- outputChannel . appendLine ( `Command ${ cmdId } (${ command . pid } ) finished` , LogLevel . Trace ) ;
1190
+ this . outputChannel . appendLine ( `Command ${ cmdId } (${ command . pid } ) finished` , LogLevel . Trace ) ;
1190
1191
}
1191
1192
if ( cmdErrMsg !== "" ) {
1192
1193
// If something was printed on stderr, log it, regardless of the exit code
1193
- outputChannel . appendLine ( `exit code ${ code } , stderr: ${ cmdErrMsg } ` , LogLevel . Error ) ;
1194
+ this . outputChannel . appendLine ( `exit code ${ code } , stderr: ${ cmdErrMsg } ` , LogLevel . Error ) ;
1194
1195
} else {
1195
- outputChannel . appendLine ( `${ allData . toString ( ) } ` , LogLevel . Debug ) ;
1196
+ this . outputChannel . appendLine ( `${ allData . toString ( ) } ` , LogLevel . Debug ) ;
1196
1197
}
1197
1198
if ( code !== null && code !== 0 && this . isView && cmdErrMsg !== "" ) {
1198
1199
reject ( cmdErrMsg ) ;
0 commit comments