microsoft / microsoft/vscode-pull-request-github
[feature] mark/deprioritize generated files by default in Tree View
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.6k
- Fork
- 795
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 46
Mô tả
When reviewing pull requests in GitHub web UI, it does a great job of collapsing/hiding generated content by default:
Users can do so by adding linguist-generated to these files .gitattributes as shown here: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
However, this experience does not translate well into VS Code, either from the desktop editor, or the www.github.dev UI.
I suggest graying out these entries as well in:
- The "Source Control" container (local changes tree view)
- The "Github Pull Request" container (active PR tree view)
- The active text editor file name (title).
- Possibly collapse these files/folder trees by default.
This seems to be possible via the new FileDecorationProvider VS Code API: https://code.visualstudio.com/api/references/vscode-api#FileDecorationProvider
This is especially important in projects that rely on code generation, where pull requests can contain a single file (source change), and many (tens) of other affected/generated files.
Any thoughts/suggestions welcomed.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với API FileDecorationProvider và kiểm tra các chế độ xem dạng cây Source Control và GitHub Pull Request, cùng với hành vi của tiêu đề trình soạn thảo đang hoạt động. Được xem là hoàn tất khi các tệp được đánh dấu là linguist-generated được giảm mức độ ưu tiên về mặt hiển thị trong các bề mặt được yêu cầu; hãy xác định riêng liệu có khả thi để thu gọn cây theo mặc định hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100