File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/client/common/process Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ export class ProcessLogger implements IProcessLogger {
2727 let command = args
2828 ? [ fileOrCommand , ...args ] . map ( ( e ) => e . trimQuotes ( ) . toCommandArgumentForPythonExt ( ) ) . join ( ' ' )
2929 : fileOrCommand ;
30- const info = [ `> ${ this . getDisplayCommands ( command , false ) } ` ] ;
30+ const info = [ `> ${ this . getDisplayCommands ( command ) } ` ] ;
3131 if ( options ?. cwd ) {
3232 const cwd : string = typeof options ?. cwd === 'string' ? options ?. cwd : options ?. cwd ?. toString ( ) ;
33- info . push ( `cwd: ${ this . getDisplayCommands ( cwd , true ) } ` ) ;
33+ info . push ( `cwd: ${ this . getDisplayCommands ( cwd ) } ` ) ;
3434 }
3535 if ( typeof options ?. shell === 'string' ) {
3636 info . push ( `shell: ${ identifyShellFromShellPath ( options ?. shell ) } ` ) ;
@@ -41,9 +41,8 @@ export class ProcessLogger implements IProcessLogger {
4141 } ) ;
4242 }
4343
44- private getDisplayCommands ( command : string , isCwd : boolean = false ) : string {
45- // Only replace workspace paths with '.' for cwd
46- if ( isCwd && this . workspaceService . workspaceFolders && this . workspaceService . workspaceFolders . length === 1 ) {
44+ private getDisplayCommands ( command : string ) : string {
45+ if ( this . workspaceService . workspaceFolders && this . workspaceService . workspaceFolders . length === 1 ) {
4746 command = replaceMatchesWithCharacter ( command , this . workspaceService . workspaceFolders [ 0 ] . uri . fsPath , '.' ) ;
4847 }
4948 const home = getUserHomeDir ( ) ;
You can’t perform that action at this time.
0 commit comments