microsoft / microsoft/vscode-python-environments

What is the global environment for?

オープン
#1,485 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@StellaHuang95 がすでに取り組んでいます。

2026年4月30日 から。

triage-needed
主要言語
TypeScript
スター
138
フォーク
62
平均マージ
1日 4時間
マージ済み PR(30日)
35

説明

Hi, using my hatch environment extension, I ran into an usability issue: there are extensions that use the global Python environment such `ruff` and `ty`.

When setting a workspace environment, these extensions still use the global env, for which there is no clear indicator in the UI. How should this be fixed:
- should my extension just also set the global environment whenever setting a project-scoped environment?
- should these extensions be changed so they stop using `api.environments.onDidChangeActiveEnvironmentPath`, which seems to track the global environment?

Maybe I just don’t really know what the `'global'` scope is for … any guidance?

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

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

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

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