Open tani opened 2 weeks ago
In browser environment, you should use the official app, https://typst.app. Regard to this, we may not develop this feature very actively.
Noted. Anyhow thanks for the great lsp and extension. I will use it. However, would you mind to review and accept pull request if I could write it in the near future?
However, would you mind to review and accept pull request if I could write it in the near future?
Glad that you have feeling to contribute this project. I'll review it for sure. :smiley:
I have investigated this problem and found it to be difficult to solve. I share my conclusions with future colleagues with the same problem.
The obstacle is that WebSockets are not supported when port forwarding is being used here. This is a problem on the VSCode side. To bypass this, it is necessary to use HTTP Polling or similar instead of WebSocket. However, I have not found a way to bypass this in the RXJS WebSocket client. I will continue to investigate and share any findings.
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):
tinymist extension version:
v0.11.0
. Get it bytinymist --version
in terminal.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