File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1- import { Terminal } from 'vscode' ;
1+ import { Terminal , window } from 'vscode' ;
22import { PythonCommandRunConfiguration , PythonEnvironment } from '../../api' ;
33import { identifyTerminalShell } from './shellDetector' ;
4+ import { traceLog } from '../../common/logging' ;
45
56export function isActivatableEnvironment ( environment : PythonEnvironment ) : boolean {
67 return ! ! environment . execInfo ?. activation || ! ! environment . execInfo ?. shellActivation ;
@@ -15,6 +16,11 @@ export function getActivationCommand(
1516 environment : PythonEnvironment ,
1617) : PythonCommandRunConfiguration [ ] | undefined {
1718 const shell = identifyTerminalShell ( terminal ) ;
19+ traceLog ( 'getActivationCommand: Shell type from API:' , shell ) ;
20+ window . onDidChangeTerminalState ( ( e ) => {
21+ // traceLog('getActivationCommand: Terminal state changed:', e);
22+ traceLog ( 'the shell type from API inside the listener:' , e . state . shell ) ;
23+ } ) ;
1824
1925 let activation : PythonCommandRunConfiguration [ ] | undefined ;
2026 if ( environment . execInfo ?. shellActivation ) {
You can’t perform that action at this time.
0 commit comments