This is an old and known issue with VS Code Python. https://github.com/microsoft/vscode-python/issues/19030