microsoft / microsoft/vscode-python-environments

Please make `python-envs.terminal.autoActivationType` syncable to all remotes

未關閉
#1,640 2 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@edvilme 已經在處理了。

開始於 2026年8月5日。

主要語言
TypeScript
星號
138
分支
62
平均合併
1 天 4 小時
30 天內合併 PR
35

描述

The canonical fix for VSCode killing any running process to activate a Python environment after opening a terminal is to set autoActivationType to a non-default value.

The problem is that, at least on my machine, this is per-remote. Below screenshots are on an AWS EC2 instance:

Image Image

This means that every time I start an instance or a new dev container, the first command I run in every terminal is killed until I got change that setting again.

Given that killing running processes indiscriminately is disruptive, I think it would be good to make it possible for a user to change this behavior for good. Otherwise, the only option is "python.terminal.activateEnvironment": false, which isn't ideal either.

Maybe there could be a defaultAutoActivationType setting that syncs, so the user can choose the syncing version or the other at will? Alternatively, setting the default to shellStartup might be less surprising and less likely to cause problems.

A good reason to care about this is that this can cost the user money. In my case, it killed an OpenCode session that had been running for hours, which I discovered too late, leading to a cache miss on the whole conversation when I started it again.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。