Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Provide option to disable autocompletion

Đang mở
#24,582 16 bình luận 21 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
angular, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách lần theo lệnh completion của Angular CLI và cấu hình cli.completion.prompted toàn cục được mô tả trong issue. Xác định cách prompt trong lần chạy đầu tiên và việc bật completion được xử lý, sau đó thêm một cách được hỗ trợ để tắt nó, chẳng hạn như ng completion disable. Công việc được xem là hoàn tất khi người dùng có thể tắt completion mà không bị nhắc lại và hành vi CLI liên quan được bao phủ bởi các bài kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
27k
Fork
11.8k
Merge trung bình
17 giờ 25 phút
Pull request đã merge (30 ngày)
183

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/angular-cli

Tất cả issue của angular/angular-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.