File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/client/terminals/codeExecution Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ import { EventName } from '../../telemetry/constants';
55
66function checkREPLCommand ( command : string ) : undefined | 'manualTerminal' | `runningScript` | 'runningTest' {
77 const lower = command . toLowerCase ( ) . trimStart ( ) ;
8-
8+
99 // Check for test commands
1010 if (
11- lower . includes ( 'pytest' ) ||
12- ( lower . startsWith ( 'python' ) && lower . includes ( ' -m pytest' ) ) ||
11+ lower . includes ( 'pytest' ) ||
12+ ( lower . startsWith ( 'python' ) && lower . includes ( ' -m pytest' ) ) ||
1313 ( lower . startsWith ( 'py ' ) && lower . includes ( ' -m pytest' ) ) ||
1414 ( lower . startsWith ( 'python' ) && lower . includes ( ' -m unittest' ) ) ||
1515 ( lower . startsWith ( 'py ' ) && lower . includes ( ' -m unittest' ) ) ||
1616 lower . includes ( 'py.test' )
1717 ) {
1818 return 'runningTest' ;
1919 }
20-
20+
2121 // Regular Python commands
2222 if ( lower . startsWith ( 'python' ) || lower . startsWith ( 'py ' ) ) {
2323 const parts = lower . split ( ' ' ) ;
You can’t perform that action at this time.
0 commit comments