tinymist icon indicating copy to clipboard operation
tinymist copied to clipboard

Typst Preview fails on VSCode web and others.

Open tani opened this issue 7 months ago • 4 comments

Describe the bug Typst Preview uses the address of the local host to communicate with the server for preview, so VSCode used from a web browser, such as Gitpod, VSCode web or Coder, will cause address mismatch and the preview will fail.

Package/Software version:

VSCode version(Help -> About):

Gitpod Code
Version: 1.90.2
Commit: dc0e7217f8f11d3249dcd2cd1d2152a2fdb45f3e
Date: 2024-06-20T12:06:32.291Z (2 wks ago)
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0

tinymist extension version: v0.11.0. Get it by tinymist --version in terminal.

Typst Version:       0.11.1

Additional context

https://github.com/Enter-tainer/typst-preview/blob/971dbc7f63ba12af4497204e7c433e0ed62d89a4/addons/frontend/src/main.js#L40

https://github.com/Enter-tainer/typst-preview/issues/292

tani avatar Jul 08 '24 10:07 tani