From fd10b164b472caaa3e87d11808271c05e28a8ddd Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Mon, 5 Feb 2024 16:27:20 +0530 Subject: [PATCH] Log when running Python file (#22851) For https://github.com/microsoft/vscode-python/issues/22711 --- src/client/terminals/codeExecution/codeExecutionManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/terminals/codeExecution/codeExecutionManager.ts b/src/client/terminals/codeExecution/codeExecutionManager.ts index ed31e194b2d2..061918b7a74a 100644 --- a/src/client/terminals/codeExecution/codeExecutionManager.ts +++ b/src/client/terminals/codeExecution/codeExecutionManager.ts @@ -14,7 +14,7 @@ import { IDisposableRegistry, IConfigurationService, Resource } from '../../comm import { noop } from '../../common/utils/misc'; import { IInterpreterService } from '../../interpreter/contracts'; import { IServiceContainer } from '../../ioc/types'; -import { traceError } from '../../logging'; +import { traceError, traceVerbose } from '../../logging'; import { captureTelemetry, sendTelemetryEvent } from '../../telemetry'; import { EventName } from '../../telemetry/constants'; import { ICodeExecutionHelper, ICodeExecutionManager, ICodeExecutionService } from '../../terminals/types'; @@ -44,6 +44,7 @@ export class CodeExecutionManager implements ICodeExecutionManager { (cmd) => { this.disposableRegistry.push( this.commandManager.registerCommand(cmd as any, async (file: Resource) => { + traceVerbose(`Attempting to run Python file`, file?.fsPath); const interpreterService = this.serviceContainer.get(IInterpreterService); const interpreter = await interpreterService.getActiveInterpreter(file); if (!interpreter) {