When Mosh asks to modify the Python interpreter to the one of the virtual environment, .vscode folder with settings.json inside is not created. This is because there is in course at the development team an experiment for removing ` the python.pythonPath.
Reading a useful post about the issue under github I found this:
“To opt out of the experiment, you can set “python.experiments.optOutFrom”
to either the specific experiment or to ["All"]
to opt out of all experiments.”
I made this modification in the user settings and it works.
Now the info about the interpreter path are stored in the .vscode/settings.json file under my project folder.