microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.34k stars 1.19k forks source link

why vscode change dir to `extensions` automatically after launch? #24152

Open HppZ opened 1 month ago

HppZ commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes/No

image

anthonykim1 commented 1 month ago

Hi @HppZ thanks for filing this issue. Can you add

 "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"],

to your settings.json and see if you face the same problem? Also make sure you run "Python Clear Cache and Reload" command from the command palette.

Let me know how this goes - thanks

HppZ commented 1 month ago

The bug doesn't occur every time.

HppZ commented 1 month ago

Hi @HppZ thanks for filing this issue. Can you add

 "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"],

to your settings.json and see if you face the same problem? Also make sure you run "Python Clear Cache and Reload" command from the command palette.

Let me know how this goes - thanks

It does NOT work!