mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-24 21:19:37 +00:00
Previously, Tinymist preview does not work on VS Code web (code-server) because it tries to connect to the `localhost`, which is impossible since we are doing remote development. Even if we fix this error, the HTTP origin check will also fail because the domain of our VS Code web is not trusted by Tinymist. One possible fix is to grab the `VSCODE_PROXY_URI` environment variable and check if the incoming request matches the URI. This will fix the issue for most standard code-server installations. However, GitHub Codespace is an exception. I did some logging, and found that GitHub Codespace used different origins: - `<random>.assets.github.dev` - `https://localhost:<port>` (note HTTP**S**) - `None` This is very weird and difficult to debug. Moreover, the ports forwarded by GitHub Codespaces require authentication before visiting, which the VS Code webview does not support. One have to open the URL in another browser tab to authenticate. This is frustrating and is difficult to workaround. Therefore, currently, GitHub Codespaces are not supported. (I asked LLM to generate some of the Rust code. It works, but may need improvements.) Fixes #625 |
||
|---|---|---|
| .. | ||
| crityp | ||
| sync-lsp | ||
| tinymist | ||
| tinymist-analysis | ||
| tinymist-assets | ||
| tinymist-cli | ||
| tinymist-dap | ||
| tinymist-debug | ||
| tinymist-derive | ||
| tinymist-l10n | ||
| tinymist-lint | ||
| tinymist-package | ||
| tinymist-project | ||
| tinymist-query | ||
| tinymist-render | ||
| tinymist-std | ||
| tinymist-task | ||
| tinymist-tests | ||
| tinymist-vfs | ||
| tinymist-world | ||
| typlite | ||
| typst-preview | ||
| typst-shim | ||