Skip to content

Commit 1ae4270

Browse files
committed
revert logger changes
1 parent 077b348 commit 1ae4270

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/client/common/process/logger.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)