microsoft / microsoft/vscode-python-environments
What is the global environment for?
@StellaHuang95 arbeitet bereits daran.
Seit 30.4.2026.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 138
- Forks
- 62
- Ø Merge
- 1 T. 4 Std.
- Gemergte PRs (30 T.)
- 35
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.