-
Notifications
You must be signed in to change notification settings - Fork 21
Persist webview preview through vscode restarts #300
Conversation
looks cool! i will test this when i leave work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @Myriad-Dreamin PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see how it works: you launch preview in the deserialization again. This is pretty awesome!
Thanks for the feedback! I think I fixed everything. |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally LGTM. BTW we are integrating typst-preview into tinymist (see Myriad-Dreamin/tinymist#323). So this patch will be cherrypicked to tinymist after it got merged
Should I move this PR to Tinymist? |
This fix #153 |
It's not necessary. We will do it. But it's good to send following PR(if there is any) to tinymist. |
Thank you! |
Hello!
This is a small PR implementing the serialization feature which lets the webviews persist over VSCode restarts :)
To see its effect, try opening up a Typst Preview inside VSCode, then run the "Developer: Reload Window" command or close and open VSCode. Before this PR, the Typst Preview would cease to exist. After it, it should re-load.