You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.nls.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
"python-envs.terminal.autoActivationType.command": "Activation by executing a command in the terminal.",
11
11
"python-envs.terminal.autoActivationType.shellStartup": "Activation by modifying the terminal shell startup script. To use this feature we will need to modify your shell startup scripts.",
12
12
"python-envs.terminal.autoActivationType.off": "No automatic activation of environments.",
13
+
"python-envs.terminal.useEnvFile.description": "Controls whether environment variables from .env files and python.envFile setting are injected into terminals.",
// Only show notification when env vars change and we have an env file but injection is disabled
65
+
if(!useEnvFile&&envFilePath){
66
+
window.showInformationMessage(
67
+
'An environment file is configured but terminal environment injection is disabled. Enable "python.terminal.useEnvFile" to use environment variables from .env files in terminals.',
68
+
);
69
+
}
70
+
58
71
if(args.changeType===2){
59
72
// FileChangeType.Deleted
60
73
this.clearWorkspaceVariables(affectedWorkspace);
@@ -66,6 +79,20 @@ export class TerminalEnvVarInjector implements Disposable {
66
79
}),
67
80
);
68
81
82
+
// Listen for changes to the python.envFile setting
0 commit comments