microsoft / microsoft/vscode-python-environments

Automated terminal activation kills all running tasks in terminals

Ouverte
#1,375 3 commentaires 4 réactions 1 personne assignée Réclamée par @anthonykim1 Voir sur GitHub
area-activation area-terminal
Langage dominant
TypeScript
Étoiles
138
Forks
62
Merge moyen
1 j 4 h
PR mergées (30 j)
35

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.