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
envVarScope.clear();// Clear existing variables for this workspace
119
121
120
-
if(!injectEnvFile){
122
+
// Check if python.envFile is set but useEnvFile is false (default) and show notification
123
+
if(!useEnvFile&&envFilePath){
124
+
traceVerbose(
125
+
`TerminalEnvVarInjector: python.envFile is set but python.terminal.useEnvFile is false for workspace: ${workspaceUri.fsPath}`,
126
+
);
127
+
128
+
// Show information message to user
129
+
showInformationMessage(
130
+
'The python.envFile setting is configured but will not take effect in terminals. Enable the "python.terminal.useEnvFile" setting to use environment variables from .env files in terminals.',
131
+
'Open Settings'
132
+
).then((selection)=>{
133
+
if(selection==='Open Settings'){
134
+
// Open VS Code settings to the python.terminal.useEnvFile setting
0 commit comments