Collapse what does not help when focusing the state machine on an error, and show the ways to fix it
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript, vscode
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- TypeScript
- 星號
- 6
- 分支
- 1
- 平均合併
- 14 小時 6 分鐘
- 30 天內合併 PR
- 32
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
liquid-java/vscode-liquidjava 的其他 Issue
-
enhancement
難度 4/5 3-5 天 新手友好度 28/100
liquid-java/vscode-liquidjava#209 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
liquid-java/vscode-liquidjava#157 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
liquid-java/vscode-liquidjava#156 ·
維護者通常 1 天內回覆
-
Opt-in study logging of extension interactions可能重新可做 關聯的 PR 已關閉且未合併。 未關閉enhancement
難度 5/5 一週以上 新手友好度 35/100
liquid-java/vscode-liquidjava#121 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 68/100
liquid-java/vscode-liquidjava#116 · 1 則留言 ·
維護者通常 1 天內回覆
查看 liquid-java/vscode-liquidjava 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 74/100
yavorsky/unbuilt.app#65 ·
-
CVE security
難度 2/5 1-3 小時 新手友好度 68/100
mckinsey/agents-at-scale-ark#4091 · 1 則留言 ·
維護者通常 1 天內回覆
-
factory:subtask
難度 1/5 1 小時以內 新手友好度 94/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
NUS-Project-SaBai/project-sabai#386 ·
維護者通常 3 天內回覆
-
android needs clarification
難度 2/5 1-3 小時 新手友好度 72/100
super-productivity/super-productivity#12105 · 3 則留言 ·
維護者通常 1 天內回覆