title: Visual Studio Code issue selecting Virtual Environment Python interpreter
body: <p>I have set up a virtual environment (.venv) in a VS Code workspace, which I use for learning Python programming, and have selected the Python interpreter in .venv. About 2 out of every 3 times when starting up VS Code, this Python interpreter gets discovered and invoked correctly. Nevertheless, but every so often VS Code seems to have correctly discovered the interpreter and shows a footer message Python 3.10.4('.venv':venv), but then keeps on 'Discovering Python Interpreters', erases the said message, and asks for me to select a Python interpreter. I've linked to a screenshot below, to show how the issue develops. I have appreciated the answers provided in the forum thread 'Visual Studio Code does not detect Virtual Environments', but none of these helps me to solve my problem. Neither has adding the path to the Python executable, located in the .venv, into the default Python interpreter path in settings.json. Has anyone experienced a similar problem and found a solution, please?</p>
  <p>Specs:<br />
  VS Code: 1.69.2<br />
  Windows 10 Pro: 10.0.19044<br />
  Python: 3.10.4
  MS Python extension: v2022.10.1</p>
  <p>VS Code screenshot of Python interpreter selection issue:
  <img src="https://i.stack.imgur.com/Yzlmk.gif" alt="VS Code screenshot of Python interpreter selection issue" /></p>
  <p>PS: I suspected that the issue might be caused by my workspace folder being located on OneDrive, and thus moved it to my laptop hard disk. This didn't make any difference, and VS Code still behaves in the same erratic manner as described above.</p>