Nothing.
They saved the settings.json to the company’s internal wiki under the title: pylance missing imports poetry hot
Recreate the environment inside your project: poetry install Nothing
A common and often hidden cause is Pylance's auto-exclusion rule. Recent versions auto-exclude any folder starting with a period ( . ), which includes Poetry's .venv directory. This causes Pylance to completely ignore the virtual environment and its installed packages. ), which includes Poetry's
If the red squiggles persist, you can try clearing Pylance's index. Run PyLance: Clear all persistent indices from the Command Palette to force a fresh analysis.
The cleanest way to avoid this issue entirely is to force Poetry to create virtual environments directly inside your project folder. This creates a .venv folder in your root directory, which VS Code detects instantly.