{
"folders": [
{
"name": "root",
"path": "."
},
{
"name": "service_A",
"path": "service_A"
},
{
"name": "service_B",
"path": "service_B"
},
{
"name": "company_python",
"path": "company_python"
},
],
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "service_A",
"consoleName": "service_A",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": [
"app.main:app",
"--reload",
"--reload-dir",
"${workspaceFolder:service_A}",
"--reload-dir",
"${workspaceFolder:root}/company_python",
],
"justMyCode": true,
"console": "integratedTerminal",
"env": {
"POETRY_ACTIVE": "1",
"PYTHONPATH": "${workspaceFolder:service_A}:${workspaceFolder:root}/company_python"
},
"cwd": "${workspaceFolder:service_A}",
"python": "${workspaceFolder:service_A}/.venv/bin/python",
"windows": {
"python": "${workspaceFolder:service_A}\\.venv\\Scripts\\python.exe"
}
},
{
"name": "service_B",
"consoleName": "service_B",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": [
"app.main:app",
"--port",
"8001",
"--reload",
"--reload-dir",
"${workspaceFolder:service_B}",
"--reload-dir",
"${workspaceFolder:root}/company_python",
],
"justMyCode": true,
"console": "integratedTerminal",
"env": {
"POETRY_ACTIVE": "1",
"PYTHONPATH": "${workspaceFolder:service_B}:${workspaceFolder:root}/company_python"
},
"cwd": "${workspaceFolder:service_B}",
"python": "${workspaceFolder:service_B}/.venv/bin/python",
"windows": {
"python": "${workspaceFolder:service_B}\\.venv\\Scripts\\python.exe"
}
}
]
},
"settings": {
"files.exclude": {
"service_A": true,
"service_B": true
// "company_python": true,
},
"search.exclude": {
"service_A": true,
"service_B": true
// "company_python": true,
},
"python.analysis.extraPaths": [
"${workspaceFolder:root}/company_python"
],
"python.autoComplete.extraPaths": [
"${workspaceFolder:root}/company_python"
]
}
}
"python": "${workspaceFolder:service_A}/.venv/bin/python",
Even when I clear all settings regarding the interpreters, it still does not use the interpreter that I have configured in the debug launch config.
Does this issue occur when all extensions are disabled?: Yes
Issue:
I am using a multi-root workspace for my monorepo. I am using a
monorepo.code-workspacefile that roughly looks like the following:The lines that are important are:
When I hover over this, it hints at the following:

However, when I launch the debug configuration for either
service_Aorservice_B, it does not use the path I configured inmonorepo.code-workspace. Instead, VS Code look at which file is currently open, and checks which interpreter is configured 'locally'.Even when I clear all settings regarding the interpreters, it still does not use the interpreter that I have configured in the debug launch config.
Steps to Reproduce:
monorepo.code-workspacethat I provided above..venvfor bothservice_Aandservice_B.Python: Select Interpreteras shown in the screenshot above.service_B.service_A..venvofservice_B.