Skip to content

Commit

Permalink
Fix telemetry not getting picked up for python
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Aug 16, 2024
1 parent 59a8d03 commit 4e69924
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/terminals/codeExecution/terminalReplWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { EventName } from '../../telemetry/constants';

function checkREPLCommand(command: string): boolean {
const lower = command.toLowerCase().trimStart();
return lower.startsWith('python ') || lower.startsWith('py ');
return (
lower.startsWith('python') || lower.startsWith('py') || lower.startsWith('python ') || lower.startsWith('py ')
);
}

export function registerTriggerForTerminalREPL(disposables: Disposable[]): void {
Expand Down

0 comments on commit 4e69924

Please sign in to comment.