What is the global environment for?

Aperta
#1,485 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@StellaHuang95 ci sta già lavorando.

Dal 30/4/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

triage-needed

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?

Lingua principale
TypeScript
Stelle
140
Fork
63
Merge medio
1g 4h
PR unite (30g)
35

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/vscode-python-environments

Tutte le issue di microsoft/vscode-python-environments

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.