File tree 1 file changed +9
-0
lines changed
src/client/terminals/envCollectionActivation 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,16 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
353
353
354
354
private async handleMicroVenv ( resource : Resource ) {
355
355
try {
356
+ const settings = this . configurationService . getSettings ( resource ) ;
356
357
const workspaceFolder = this . getWorkspaceFolder ( resource ) ;
358
+ if ( ! settings . terminal . activateEnvironment ) {
359
+ this . getEnvironmentVariableCollection ( { workspaceFolder } ) . clear ( ) ;
360
+ traceVerbose (
361
+ 'Do not activate microvenv as activating environments in terminal is disabled for' ,
362
+ resource ?. fsPath ,
363
+ ) ;
364
+ return ;
365
+ }
357
366
const interpreter = await this . interpreterService . getActiveInterpreter ( resource ) ;
358
367
if ( interpreter ?. envType === EnvironmentType . Venv ) {
359
368
const activatePath = path . join ( path . dirname ( interpreter . path ) , 'activate' ) ;
You can’t perform that action at this time.
0 commit comments