microsoft / vscode-python

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

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

Open HppZ opened 2 months ago

HppZ commented 2 months ago

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

image

anthonykim1 commented 2 months 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!

anthonykim1 commented 1 day ago

interesting - are you able to repro this consistently?