temporalio / vscode-debugger-extension

Visual Studio Code debugger plugin
https://marketplace.visualstudio.com/items?itemName=temporal-technologies.temporalio
MIT License
19 stars 7 forks source link

[Feature Request] Implement history visualization view #6

Closed bergundy closed 1 year ago

bergundy commented 2 years ago

Note: we will reuse the same panel (webview) we use for the "main panel", when the debug session starts the panel should transition to display the history.

bergundy commented 2 years ago

Adding some more details here. In addition to what you already have, you'll need to:

  1. visualize the rest of the events
  2. add a title above the list of tasks
  3. filter out irrelevant workflow tasks that end with WORKFLOW_TASK_TIMED_OUT and WORKFLOW_TASK_FAILED events
  4. filter out irrelevant workflow events like WORKFLOW_EXECUTION_TIMED_OUT and WORKFLOW_EXECUTION_TERMINATED
  5. add a "current" class to a workflow task in the list to highlight it when it is currently being processed (needs for next steps)
  6. add a handler for setting a breakpoint on a workflow task (next step as well)

For the "title" the logic is as follows: