Milkdown / vscode

MIT License
259 stars 10 forks source link

[bug] crashes when reopen editor with unsaved file #12

Closed Ovilia closed 3 years ago

Ovilia commented 3 years ago

Steps to reproduce:

  1. Open a new file but don't save it
  2. Type something
  3. Right-click the tab of the file, choose "重新打开编辑器的方式" (Maybe "Reopen the editor with"? in the English version?)
截屏2021-09-25 下午3 44 59

The file crashes and the previous content is gone. Forever! :(

I can help to debug if someone gives me a hint on how to do this. No experience with VSCode extensions. Thanks!

Saul-Mirone commented 3 years ago

Let me have a look on this

Saul-Mirone commented 3 years ago

I tried a lot of ways but I cannot reproduce, what's your vscode version?

Saul-Mirone commented 3 years ago

Should be fixed in v0.0.10, feel free to reopen if you have further questions.