antfu / retypewriter

Replay the steps of your changes at ease.
https://marketplace.visualstudio.com/items?itemName=antfu.retypewriter
MIT License
729 stars 12 forks source link

Cannot stop process, cannot restart if switching tabs #1

Closed cyberalien closed 1 year ago

cyberalien commented 1 year ago

Describe the bug

There is no option to stop playing, so I tried to stop by switching editor tabs. That stopped process, but also threw error. After that, attempting to start player shows reTypewriter: Already playing even though it is not playing.

Steps to reproduce:

  1. Start playing
  2. While plugin is playing, switch tab. That should stop player and throw error.
  3. Click play button again. That should throw another error

Reproduction

Follow steps in description

System Info

System:
    OS: macOS 12.5.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 50.66 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.19.2 - /usr/local/bin/npm

Used Package Manager

n/a

Validations