Skip to content

Conversation

@alcarney
Copy link
Member

@alcarney alcarney commented Sep 29, 2024

This looks it fixes #896

  • The language server now passes the entire WebSocket connection string via the ws query parameter e.g. ?ws=ws://localhost:1234
  • The VSCode extension calls vscode.env.asExternalUri on both the http:// and ws:// URIs which triggers the relevant ports to be forwarded when run in CodeSpaces
  • Includes fixes for assumptions that are broken when run in the context of CodeSpaces

In addition to running the preview uri from the server through `vscode.env.asExternalUri`
we need to make sure that the CSP for the embedded iframe is given the correct origin.
@alcarney alcarney merged commit 4ced573 into swyddfa:develop Oct 7, 2024
13 of 14 checks passed
@alcarney alcarney deleted the fix-codespaces branch October 7, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running Esbonio Preview on Codespaces doesn't work

1 participant