angular / angular/angular-cli

Provide option to disable autocompletion

Abierto
#24,582 16 comentarios 21 reacciones 0 asignados Ver en GitHub
area: @angular/cli feature feature: insufficient votes
Lenguaje dominante
TypeScript
Estrellas
27k
Forks
11.8k
Merge medio
14 h 23 min
PR fusionados (30 d)
162

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza siguiendo el comando de completion de Angular CLI y la configuración global cli.completion.prompted descrita en el issue. Determina cómo se gestionan el aviso de la primera ejecución y la activación de completion, y después añade una ruta compatible para desactivarla, como `ng completion disable`. Se considera terminado cuando los usuarios pueden desactivar completion sin volver a recibir el aviso y el comportamiento relevante de la CLI está cubierto por pruebas.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
cli
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.