rxjs-debugging-for-vscode icon indicating copy to clipboard operation
rxjs-debugging-for-vscode copied to clipboard

Last emitted value is not shown

Open dzhavat opened this issue 3 years ago • 2 comments

Version Overview

  • OS: Windows 10
  • Visual Studio Code Version: 1.56.2
  • "RxJS Debugging for Visual Studio Code" Extension: 0.1.2
  • Node.js: 12.19.1

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

dzhavat avatar May 18 '21 20:05 dzhavat

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)"?

swissmanu avatar May 19 '21 08:05 swissmanu

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).

dzhavat avatar May 19 '21 09:05 dzhavat