microsoft / microsoft/vscode-python-environments

Automated terminal activation kills all running tasks in terminals

Abierto
#1,375 3 comentarios 4 reacciones 1 asignado Ver en GitHub

@anthonykim1 ya está trabajando en esto.

Desde el 23/3/2026.

area-activation area-terminal
Lenguaje dominante
TypeScript
Estrellas
138
Forks
62
Merge medio
1 d 4 h
PR fusionados (30 d)
35

Descripción

When I run `uv sync` on a freshly-cloned project, VS Code detects the new virtual environment, and activates it in all terminals.

However, in order to do this, it sends an interrupt signal in all terminals, causing most running tasks to exit. This is incredibly annoying in some projects, especially as the action can sometimes occur randomly up to 2 minutes after the virtual environment is created.

## To reproduce

1. `git clone` a Python project
2. Start up the project, eg by running `uv run [program]`
3. UV creates the virtual environment and starts the program
4. VS Code then immediately kills the freshly-started program

## Why this is incredibly disruptive to my workflow

I work as a university tutor. I am currently assignment marking, and to do so I must `uv run` large numbers of student projects. Every time I do this, VS Code kills their project part-way through testing.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.