Skip to content

Fix crash when python.useEnvironmentsExtension is set to false#431

Merged
MichaReiser merged 1 commit into
mainfrom
micha/python-envs-disabled-fallback
May 21, 2026
Merged

Fix crash when python.useEnvironmentsExtension is set to false#431
MichaReiser merged 1 commit into
mainfrom
micha/python-envs-disabled-fallback

Conversation

@MichaReiser

@MichaReiser MichaReiser commented May 21, 2026

Copy link
Copy Markdown
Member

Summary

The extension fails to start when using python.useEnvironmentsExtension=false, because the Python Environment extension returns
null for its API in that case, as Charlie pointed out in his review. I did not address that finding in my original PR
because I interpreted "disabled" as disabling the extension in VS Code, not having the extension active, but "disabled" by using a setting.

Closes #430

Test Plan

I verified that the extension fails to start with python.useEnvironmentsExtension=false. I verified that the extension falls back to the Python extension provider, when using this branch.

@MichaReiser MichaReiser marked this pull request as ready for review May 21, 2026 08:25
@MichaReiser MichaReiser added bug Something isn't working breaking and removed breaking labels May 21, 2026
@MichaReiser MichaReiser merged commit 3c0131a into main May 21, 2026
3 checks passed
@MichaReiser MichaReiser deleted the micha/python-envs-disabled-fallback branch May 21, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2026.48.0 in VS Code not working

2 participants