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

Unified Diff: Allow partial expansion of folded unchanged regions

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

Maintainer thường phản hồi trong vòng 1 ngày

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
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
tooling

Hướng nghiên cứu

Start by locating the Unified Diff viewer implementation and the existing "Show N unchanged lines" expansion behavior. Trace how folded unchanged regions are represented and expanded, then identify the related UI tests or test entry points. Done means upward and downward partial expansion are available while the existing expand-all action still works.

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

Mô tả

Problem

When "Fold unchanged regions" is enabled, clicking the "Show N unchanged lines" bar expands the entire folded region at once. For large folded regions (e.g. "Show 868 unchanged lines"), this immediately reveals hundreds of lines, making it hard to incrementally explore context around a change.

GitHub's diff viewer, for comparison, offers "Expand upward" and "Expand downward" affordances that reveal a fixed number of lines (e.g. 5 or 10) at a time from either end of a collapsed region.

Expected Behavior

The "Show N unchanged lines" bar should offer partial expansion in addition to the existing full expansion:

  • Expand upward — reveal the next N lines above the nearest change.
  • Expand downward — reveal the next N lines below the nearest change.
  • The existing click-to-expand-all behaviour should be preserved.

The number of lines revealed per step should be consistent and ideally configurable or follow a sensible default (e.g. 5–10 lines).

Ngôn ngữ chính
Java
Star
165
Fork
174
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
39

Chuẩn bị môi trường

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 eclipse-platform/eclipse.platform

Tất cả issue của eclipse-platform/eclipse.platform

Issue tương tự

Thêm issue về Java

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.