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

Use never to assure every event type is categorized #34

Closed laurakwhit closed 1 year ago

laurakwhit commented 1 year ago

What was changed

Why?

Before, the compile time error for unhandled event types was ⬇️

Screenshot 2023-02-28 at 12 34 27 PM

Now there is a default case (which is more intuitive) and the error lists which types are not accounted for ⬇️

Screenshot 2023-02-28 at 1 04 28 PM

Checklist

  1. Closes: n/a

  2. How was this tested: n/a

  3. Any docs updates needed? n/a