microsoft / microsoft/vscode-python-environments
Python Extension and Python Environment Extension both activate when `python.useEnvironmentsExtension` defaults to false
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 138
- フォーク
- 62
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 35
説明
## Environment data
## Repro Steps
* Install the Python extension
* Install the Python environment extension
* Set the user configuration to:
```json
"workbench.enableExperiments": false,
"python.experiments.enabled": false
```
Reload the window
## Expected behavior
* The Python and Python environment extension agree on which extension is responsible for managing environments
## Actual behavior
* Both extensions activate
* I see two Python selectors
* The `Select Python Environment` selector from the Python Environment extension is missing
## Additional context
The Python Environment Extension uses `inspect` to decide whether `useEnvironmentsExtension` is set to false, but this does not take into account a default value.
The `when` condition of the Command Palette entry uses `when`, which takes default values into account
The Python Extension uses `get`, which takes default values into account
This came up in https://github.com/astral-sh/ty-vscode/issues/551 because it's now unclear which extension ty should consider as being authoritative when it comes to selecting an environment.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Python Environment Extension の構成検査とアクティベーションロジックを特定し、次に Python Extension のデフォルトを考慮した get の動作および Command Palette の when condition と比較します。両方の拡張機能をインストールし、実験機能を無効にした状態で再現します。完了の条件は、拡張機能が環境の所有権について一致し、期待されるセレクターだけが表示されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, typescript, vscode
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 68/100