Show hints in state machine

Đang mở
#156 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ó
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
Lĩnh vực
developer-experience

Hướng nghiên cứu

Start by reading the state machine view implementation and the existing hints for possible path fixes; the issue does not name files or tests. Work out how a user can select a hint and how the suggested path should be highlighted as a possible path. Done means selecting a hint displays that path distinctly on the state machine.

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

Mô tả

enhancement

Once we have hints for the possible fixes of the path, we can try to show them on the state machine view, where a user can select one of the hints and we show it on the state machine highlighted (maybe in yellow, with dashes and with an animation of the dashes moving so we see it's like a possibility but not a fixed path).

Where this stands

  • The State Machine view lists the verifier's hints of the shown error in a Ways to fix section (#172, for #170).
  • Paths read from the diagram alone were tried in #171 and dropped: they ignore the transitions' conditions and the code. So a path drawn here should come from the verifier's hints.

What is left for this issue

Selecting a verifier hint and drawing that path, animated, on the diagram. Before this is possible:

  • Structured hints: HintDTO is only (kind, message). The verifier would need to send the calls of a call-sequence hint and the states it goes through, not just text, so the view never has to parse messages.
  • Mapping states: the hints are computed on the verifier's StateMachineBuilder, whose states are combinations of every @StateSet. The diagrams show one machine per state set (#163), so each combination must be projected onto the right diagram.
  • Incompleteness: when the machine is incomplete, the hints end with "(and possibly others)". The drawn path must read as one possibility, which is what the animated dashes are for.
  • The study: hints can give the answer away. Like the hints in the Verification tab, this stays opt-in, behind a click.
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

Mở trong Codespaces

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.

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 liquid-java/vscode-liquidjava

Tất cả issue của liquid-java/vscode-liquidjava

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.