Skip to content

terminal: avoid writing activation mode during lookup - #1826

Merged
Eleanor Boyd (eleanorjboyd) merged 1 commit into
microsoft:mainfrom
eleanorjboyd:agents/terminal-activation-read-only
Sep 25, 2026
Merged

Eleanor Boyd (eleanorjboyd) merged 1 commit into
microsoft:mainfrom
eleanorjboyd:agents/terminal-activation-read-only

Conversation

@eleanorjboyd

@eleanorjboyd Eleanor Boyd (eleanorjboyd) commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Return off when the legacy python.terminal.activateEnvironment setting is false, without writing a persistent python-envs.terminal.autoActivationType override from a getter.
  • Preserve precedence for an explicitly set Python Environments activation mode.
  • Cover false-to-true legacy setting changes and verify lookup never calls configuration update.

The setting is machine-scoped, so the previous implicit workspace-target write likely failed rather than persisting for users; this still removes an unnecessary, unawaited write attempt. This PR is independent of #1823 and contains only the getter and related tests.

Keep the legacy Python activation setting as an effective fallback without persisting an override. Cover legacy setting changes and explicit Python Environments precedence.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eleanorjboyd Eleanor Boyd (eleanorjboyd) added the bug Issue identified by VS Code Team member as probable bug label Sep 25, 2026
@eleanorjboyd
Eleanor Boyd (eleanorjboyd) merged commit 87f4dea into microsoft:main Sep 25, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants