Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Provide option to disable autocompletion

Offen
#24,582 16 Kommentare 21 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
angular, typescript
Bereich
cli

Rechercherichtung

Beginne damit, den Angular CLI completion command und die in diesem Issue beschriebene globale cli.completion.prompted-Konfiguration nachzuverfolgen. Ermittle, wie die Aufforderung beim ersten Start und die Aktivierung der Vervollständigung gehandhabt werden, und füge dann einen unterstützten Deaktivierungspfad wie ng completion disable hinzu. Fertig ist die Aufgabe, wenn Benutzer die Vervollständigung deaktivieren können, ohne erneut dazu aufgefordert zu werden, und das relevante CLI-Verhalten durch Tests abgedeckt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
27k
Forks
11.8k
Ø Merge
17 Std. 25 Min.
Gemergte PRs (30 T.)
183

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus angular/angular-cli

Alle Issues in angular/angular-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.