You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(Sky): Expand vscode-file URL rewriting and add terminal addon stubs
The vscode-file:// URL rewrite logic in Workbench.ts is expanded to handle all VS Code asset paths, not just those under `/out/`. This now covers:
- /Static/Application/out/vs/...
- /Static/Application/vs/...
- /Static/Application/node_modules/...
The astro.config.ts build process receives several improvements:
1. Try Output service path first, fall back to Wind for the Tauri service module
2. Strip sourceMappingURL references to prevent 404 → HTML → JSON parse errors
3. Filter expected errors (Canceled, FileNotFound) in global error listeners to reduce noise
4. Create a stub for @xterm/addon-progress (unpublished npm package) using AMD define() format - without this, VS Code's AMD loader gets a 404 HTML response that causes SyntaxError
Add @xterm addon packages (clipboard, image, ligatures, search, serialize, unicode11, webgl) to enable full terminal emulation in the editor.
`window.addEventListener("unhandledrejection",(e)=>{var r=e.reason;if(!r)return;var m=String(r.message||r);if(m.includes("Canceled")||m.includes("FileNotFound")||(r.code&&r.code==="FileNotFound")||m.includes("No such file or directory"))return;console.error("[workbench.js:unhandledrejection]",r);if(r&&r.stack)console.error(r.stack);});`,
0 commit comments