File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -107,4 +107,5 @@ export interface ICommandNameArgumentTypeMapping extends ICommandNameWithoutArgu
107
107
} ,
108
108
] ;
109
109
[ 'cursorEnd' ] : [ ] ;
110
+ [ 'python-envs.createTerminal' ] : [ undefined | Uri ] ;
110
111
}
Original file line number Diff line number Diff line change @@ -60,8 +60,13 @@ export class TerminalProvider implements Disposable {
60
60
61
61
@captureTelemetry ( EventName . TERMINAL_CREATE , { triggeredBy : 'commandpalette' } )
62
62
private async onCreateTerminal ( ) {
63
- const terminalService = this . serviceContainer . get < ITerminalServiceFactory > ( ITerminalServiceFactory ) ;
64
63
const activeResource = this . activeResourceService . getActiveResource ( ) ;
64
+ if ( useEnvExtension ( ) ) {
65
+ const commandManager = this . serviceContainer . get < ICommandManager > ( ICommandManager ) ;
66
+ await commandManager . executeCommand ( 'python-envs.createTerminal' , activeResource ) ;
67
+ }
68
+
69
+ const terminalService = this . serviceContainer . get < ITerminalServiceFactory > ( ITerminalServiceFactory ) ;
65
70
await terminalService . createTerminalService ( activeResource , 'Python' ) . show ( false ) ;
66
71
}
67
72
}
You can’t perform that action at this time.
0 commit comments