Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code: Use vscode.env.asExternalUri to generate preview uris #905

Merged
merged 7 commits into from
Oct 7, 2024

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