Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Typst Preview in coder's vscode server #292

Open
ntjess opened this issue May 22, 2024 · 2 comments
Open

Typst Preview in coder's vscode server #292

ntjess opened this issue May 22, 2024 · 2 comments

Comments

@ntjess
Copy link

ntjess commented May 22, 2024

Similar to #172, but hopefully easier to support? https://coder.com allows you to spawn a code-server which works with most marketplace extensions. You can see in the screenshot that both extensions are enabled!

image

The only challenge is, the preview pane is blank. Presumably, this is because the ports used for previewing are not exposed in the workspace provision. Unfortunately, this area is not my expertise, so I'm not sure if I am missing an obvious solution. Is there a simple way to know ahead of time which ports will be used for the preview, and somehow expose them to the coder workspace?

This would go a very long way toward remotely-accessible typst previewing 🙂

To reproduce:

  1. Install coder
  2. Run coder server, which will provide a listener on localhost:3000
  3. Navigate to localhost:3000 and create an account (it's only stored in a local postgres)
  4. Create a Docker template from their starter templates and "create a workspace" from that docker template
    image
  5. In the workspace, select "code-server"
    image
  6. Install the vscode extensions, create some typ file contents, and select the "preview" option.

Note that the PDF compiler from tinymist works without any issues.

@Enter-tainer
Copy link
Owner

i will try coder and see what is needed to make it work

@metorm
Copy link

metorm commented Jun 5, 2024

I got this problem, too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants