swissmanu / rxjs-debugging-for-vscode

Add non-intrusive debugging capabilities for RxJS applications to Visual Studio Code.
MIT License
113 stars 7 forks source link

Last emitted value is not shown #56

Open dzhavat opened 3 years ago

dzhavat commented 3 years ago

Version Overview

Description

The last emitted value is not shown because the text immediately switches to "Unsubscribe". This can also be seen in the demo gif.

In the gif below, the last emitted value should be "Next: 120" but it's not visible.

How to Reproduce

  1. Run the example code as shown in the demo gif

Expected Behavior

The last emitted value should be shown as well.

Screenshots/Video

Additional Context

swissmanu commented 3 years ago

Good point @dzhavat! Without checking, I assume the two events are emitted "too close" to each other. The result is that the first one is not rendered because the second one overrules it.

Until we have #44 implemented, what do you think about something like "Unsubscribe (Last Value: 102)"?

dzhavat commented 3 years ago

Until we have #44 implemented, what do you think about something like "Unsubscribe (Last Value: 102)"?

In order to keep it consistent with the previous messages, I will suggest "Next: 120; Unsubscribe" or "Next: 120 • Unsubscribe" (or something in that direction).