"python.languageServer": "Pylance", "python.analysis.autoSearchPaths": true, "python.analysis.diagnosticMode": "workspace", "python.analysis.extraPaths": [ "$workspaceFolder", "$workspaceFolder/.venv/lib/python3.x/site-packages" ]
If you cannot change Poetry’s configuration (e.g., on a shared CI environment), you can instruct Pylance directly via a .env file.
poetry env info --path