Skip to content

Python writes source .../.venv/bin/activate to existing terminals #23893

@connor4312

Description

@connor4312
  1. Have an remote SSH connection to a workspace where there's a Python .venv. Write some command you might want to run later in a terminal, but don't send it.
  2. Disconnect and reconnect to the remote.
  3. ⚠️ Python will automatically write source <path>/.venv/bin/activate to all existing terminals and submit it, resulting in the command being executed

This is a really sharp edge, I had this mess up a notable chunk of work on a remote machine because my unsent command was a destructive action 😞

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions