Skip to content

Commit

Permalink
Log when running Python file (#22851)
Browse files Browse the repository at this point in the history
For #22711
  • Loading branch information
Kartik Raj authored Feb 5, 2024
1 parent 8aaa70e commit 20c1a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/terminals/codeExecution/codeExecutionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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>(IInterpreterService);
const interpreter = await interpreterService.getActiveInterpreter(file);
if (!interpreter) {
Expand Down

0 comments on commit 20c1a10

Please sign in to comment.