microsoft / microsoft/vscode-python-environments

What is the global environment for?

Aberta
#1,485 0 comentários 0 reações 1 responsável Ver no GitHub

@StellaHuang95 já está trabalhando nisso.

Desde 30/4/2026.

triage-needed
Linguagem predominante
TypeScript
Estrelas
138
Forks
62
Merge médio
1d 4h
PRs com merge (30d)
35

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.