Closed mwisnicki closed 10 months ago
Did you try the steps in the FAQ?
Q. I'm trying to use Live Preview in Codespaces and the embedded preview isn't working.
A. Currently, you will need to manually navigate to the links host the forwarded port content before it works
In the area of the editor where the integrated terminal usually is, navigate to Ports and open the local addresses (usually at ports 3000 and 3001) in the browser. You can do this by using CTRL+Click on the URLs in the Ports menu.
Allow the browser to perform the necessary redirects, then close the windows. Re-open the preview window and it should work now.
I think this was a duplicate of https://github.com/microsoft/vscode-livepreview/issues/546
I switched to latest prerelease and had to follow the steps from FAQ mentioned above to get this working. @andreamah is this expected?
Also live reload does not work with simple static html files.
Yes, this is expected. The full functionality is tracked in https://github.com/microsoft/vscode-livepreview/issues/111.
To get the full functionality, click on the forwarded port link for both 3000 and 3001. 3001 will say 'update required', but this is expected since it is a websocket port.
Fails with following CSP error in console: