From 62897c6f0594216ce7ab397fe80ed66c0346bb0b Mon Sep 17 00:00:00 2001 From: Anthony Kim <62267334+anthonykim1@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:25:20 -0400 Subject: [PATCH] Add logging for executeCommand (#24138) Need logging to further investigate https://github.com/microsoft/vscode-python/pull/24123#issuecomment-2357498601 for windows. --- src/client/common/terminal/service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/common/terminal/service.ts b/src/client/common/terminal/service.ts index 19cdf0aea0a1..09d75a42fa00 100644 --- a/src/client/common/terminal/service.ts +++ b/src/client/common/terminal/service.ts @@ -22,6 +22,7 @@ import { TerminalShellType, ITerminalExecutedCommand, } from './types'; +import { traceVerbose } from '../../logging'; @injectable() export class TerminalService implements ITerminalService, Disposable { @@ -111,9 +112,11 @@ export class TerminalService implements ITerminalService, Disposable { if (listener) { this.executeCommandListeners.add(listener); } + traceVerbose(`Shell Integration is enabled, executeCommand: ${commandLine}`); }); } else { terminal.sendText(commandLine); + traceVerbose(`Shell Integration is disabled, sendText: ${commandLine}`); } return undefined;