Provide option to disable autocompletion
- Lingua principale
- TypeScript
- Stelle
- 27k
- Fork
- 11.8k
- Merge medio
- 14h 23m
- PR unite (30g)
- 162
Descrizione
### 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 true`but 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
```json
{
"cli": {
"completion": {
"prompted": true
}
}
}
```
also available in the `angular.json` file.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando il comando di completion di Angular CLI e la configurazione globale cli.completion.prompted descritta nell'issue. Determina come vengono gestiti il prompt al primo avvio e l'abilitazione di completion, quindi aggiungi un percorso supportato per disabilitarla, ad esempio `ng completion disable`. Il lavoro è completo quando gli utenti possono disabilitare completion senza che venga loro mostrato nuovamente il prompt e il comportamento CLI pertinente è coperto dai test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100