How do I open the preview panel?

[Samuel Corsi-House]

@vince-fugnitto i understand that it is only for html/css and markdown files but is it possible to somehow access localhost on it?

[Samuel Corsi-House]

because the example I first posted they got it to work.

localhost always points to your local machine, you should use the remote address

Theia is generally using https://github.com/eclipse-theia/theia/blob/c2ffdc71b63ddd761f6a1d2903d7dd9c05f14466/packages/core/src/browser/external-uri-service.ts#L46 to remap localhost to external URI, but I don’t think it is used by the mini browser.

@kittaakos Do you know how to auto remap localhost to externally accessible URL for the mini browser?

[Samuel Corsi-House]

I’m running the yarn version of theia in a docker container cause im not sure how to make the ui work for the image. So I don’t really know what the public ip would be.

I thought that one can expose Theia from docker container on the localhost when you start Theia you can pass –hostname=0.0.0.0 to deploy it on all interfaces and then you start a container something like –expose 3000 -p 3000:3000. The latter should expose a port and remap it on port 3000.

[Samuel Corsi-House]

Ok. I switched to the docker image. Haven’t tried anything yet.