Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Provide option to disable autocompletion

Aberta
#24,582 16 comentários 21 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
42/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
angular, typescript
Domínio
cli

Direção de pesquisa

Comece rastreando o comando de completion do Angular CLI e a configuração global cli.completion.prompted descrita na issue. Determine como o prompt da primeira execução e a ativação do completion são tratados e, em seguida, adicione um caminho compatível para desativá-lo, como ng completion disable. A tarefa estará concluída quando os usuários puderem desativar o completion sem receber o prompt novamente e o comportamento relevante da CLI estiver coberto por testes.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

area: @angular/cli feature feature: insufficient votes
Which @angular/* package(s) are relevant/related to the feature request?

No response

Description

If you developing an angular web app in an dev container every time the container is created or rebuild and you are running the ng command for the first time, the angular cli asks:

? Would you like to enable autocompletion? This will set up your terminal so pressing TAB while typing Angular CLI commands will show possible options and autocomplete arguments. (Enabling autocompletion will modify
configuration files in your home directory.)

You can activate this "feature" but there is no way to disable it proactive.

You could run the command ng config -g cli.completion.prompted truebut if this is the first execution of the angular cli this only lead to the question if I want to enable autocompletion. So this isn't a solution.

Proposed solution

Because the user has the possibility to opt this feature out when the angular cli asks you if you want to enable the autocompletion and because there is an command to enable this without being asked there should also be to possibility to disable this feature with an command like

ng completion disable

Alternatives considered

As an alternative you could also make the global configuration settings

{
  "cli": {
    "completion": {
      "prompted": true
    }
  }
}

also available in the angular.json file.

Linguagem predominante
TypeScript
Estrelas
27k
Forks
11.8k
Merge médio
17h 25min
PRs com merge (30d)
183

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.

Mais de angular/angular-cli

Todas as issues de angular/angular-cli

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

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