Replies: 1 comment 16 replies
-
I'd really LOVE to see and make that happen. Yet I'm not sure how hard/simple will it be to implement it? |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently went through the discussions in #2228 and #3217.
It seems that the main obstacle is the fact that vscode live share does not support sharing binary files. But if vscode really only wants a text file, we can give it a text file. I would like to propose a workaround. Admittedly it's somewhat hacky, but the amount of extra code needed should be very minimal. And once vscode live share does support sharing binary files, removing this workaround is also easy.
I wonder if there's any obvious problem with the following approach:
output.pdf.yenc
after each compilation, which is a text file encodingoutput.pdf
. Hereyenc
is just an example, chosen due to its efficiency, butbase64
of course also works.*.pdf.yenc
. Opening such a file is pretty much the same as opening apdf
file except for a decoding step before passing decoded data (in an array, not via a file) topdfjs
. This is the path taken by the guest. On the host, everything is the same as now.There are other bells and whistles like compiling from the guest etc. But being able to preview the pdf already makes collaborating online much easier.
Beta Was this translation helpful? Give feedback.
All reactions