Collapse what does not help when focusing the state machine on an error, and show the ways to fix it
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/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ệ
- typescript, vscode
- Lĩnh vực
- design, developer-experience
Hướng nghiên cứu
Start by reading the State Machine view implementation and its existing focus mode, then trace how the Verification tab receives verifier hints. Use the UDP chat client’s DatagramSocket example to check the focused layout. Done means the focused view collapses dimmed methods, merges constructors, fits the diagram while keeping every state visible, and lists the verifier’s hints; Show all remains unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
When the State Machine view opens on a state error, focus mode dims what does not help with the error (#158) but keeps every label's text, so the layout does not move. On a large machine the dimmed label stacks still take up the space. In the UDP chat client (DatagramSocket), 11 and 13 dimmed methods sit next to unbound and bound. The state the error is about, closed, ends up below the fold, so the user has to scroll the panel to find it.
#117 first asked for a reduced initial view. #158 chose dimming so that toggling would not re-lay out the diagram.
The view also shows where a call is rejected but not how to get to a state that accepts it. The verifier's hints only appear in the Verification tab.
Proposal
Keep the full diagram and never remove a state. In focus mode, collapse what is dimmed instead of only fading it:
- Collapse the dimmed methods of each label into a count, with their names in a tooltip:
receive · +9 more,2 methods. Overloads count once. Hovering the count lists those methods next to it, and a click keeps the list open. - Merge the constructors of each state into one arrow.
- Lay the diagram out again, and shrink a tall diagram to fit the panel, but not below a readable scale (60%).
- Show all stays exactly as it is today.
Include the possible ways to fix the error, from the verifier: the state hints of the error (liquid-java/liquidjava#411 and the PRs after it), listed in the State Machine view as in the Verification tab. They may say "(and possibly others)".
Ways read from the diagram alone were tried and dropped. A shortest path along the transitions ignores their conditions and the code. For a state that no call leaves, such as closed, it could only suggest creating a new object. In the UDP case the real fix is in the control flow, which the verifier's hint already says.
Not in scope
- Using the error categories to choose what to show (liquid-java/liquidjava#418). This was discussed. The categories are right for 34 of 52 exercises, and most wrong labels are "argument picks the state" bugs reported as Out of order. A diagram reduced by category would hide the evidence in exactly those cases. Categories can add emphasis later, but never remove parts.
- Drawing a selected hint on the diagram (#156). The hints are text, and their states are combinations of state sets, while the diagrams have one machine per state set.
Acceptance
- On
DatagramSocketin the UDP chat client, the focused view showsclosedandboundwithout scrolling. - Focus mode keeps the failed method bright. Every state is still drawn, and every collapsed label can be expanded.
- Show all is unchanged.
- The view lists the verifier's hints.
- Ngôn ngữ chính
- TypeScript
- Star
- 6
- Fork
- 1
- Merge trung bình
- 14 giờ 6 phút
- Pull request đã merge (30 ngày)
- 32
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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.
Issue khác của liquid-java/vscode-liquidjava
-
Side panel: show the facts inferred from a loop as a Found step, and explain loop-start namesĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
liquid-java/vscode-liquidjava#209 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Idea: Play object protocolĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
liquid-java/vscode-liquidjava#157 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Show hints in state machineĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
liquid-java/vscode-liquidjava#156 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Opt-in study logging of extension interactionsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
liquid-java/vscode-liquidjava#121 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
liquid-java/vscode-liquidjava#116 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của liquid-java/vscode-liquidjava
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Nethernet Tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JSPrismarine/JSPrismarine#3949 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
withkarann/aifoxx#504 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày