angular / angular/angular-cli

Provide option to disable autocompletion

Ouverte
#24,582 16 commentaires 21 réactions 0 personnes assignées Voir sur GitHub
area: @angular/cli feature feature: insufficient votes
Langage dominant
TypeScript
Étoiles
27k
Forks
11.8k
Merge moyen
14 h 23 min
PR mergées (30 j)
162

Description

### 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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par suivre la commande de completion d'Angular CLI et la configuration globale cli.completion.prompted décrite dans l'issue. Déterminez comment sont gérés l'invite au premier lancement et l'activation de completion, puis ajoutez une méthode prise en charge pour la désactiver, telle que `ng completion disable`. Le travail est terminé lorsque les utilisateurs peuvent désactiver completion sans être invités à nouveau et que le comportement pertinent de la CLI est couvert par des tests.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.