microsoft / microsoft/vscode-python-environments

Automated terminal activation kills all running tasks in terminals

オープン
#1,375 コメント 3 件 リアクション 4 件 担当者 1 名 @anthonykim1 が担当を希望しています GitHub で見る
area-activation area-terminal
主要言語
TypeScript
スター
138
フォーク
62
平均マージ
1日 4時間
マージ済み PR(30日)
35

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。