Repository navigation
VS Code for the Web: open-steamgate in vscode.dev (logo, staging on Pages, F8, notebooks, Fiori) - #828
Conversation
…ity bar glyph Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
…de jobs, unit and F8-dispatch commands in the web palette The preview deployment now carries editors/vscode as a plain directory (scripts/stage-vscode-web.mjs: dist/web, resources, walkthrough, media, the manifest without the desktop main), so vscode.dev installs it with "Install Extension From Location" from <preview>/vscode-web/. It is built after every preview check and screenshot and never touches build/preview. web:vscode:test on main failed its palette check: the jobs view, Run ABAP Unit and Run object (F8 dispatch) commands, added after the check was written, had no commandPalette entry and so showed in the browser too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
…ode-server (desktop main) and @vscode/test-web (browser entry) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
…gateway The webview loads webapp/ (copied to dist/web/app by web:vscode) with SAPUI5 from the CDN; an XMLHttpRequest subclass and a fetch wrapper send /sap/opu/odata/ and /sap/bc/ URLs over the postMessage bridge, async. osd: Open Fiori Launchpad and a click on an Apps row open it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Preview: open the launchpad - the OData gateway, the demo and Zork run in your browser, no server. Screenshots - built from |
…ode inside the isolated webview vscode.dev's CSP lets Install Extension From Location fetch only from https://localhost:* and the Marketplace CDN, so a Pages URL is refused although Pages answers CORS (measured in vscode.dev). scripts/serve-vscode-web.mjs serves the staged directory, or relays a published preview, on https://localhost with the Private Network Access preflight answer and CORP that vscode.dev's cross-origin isolation needs. The same isolation (COEP require-corp) reaches every webview frame: ui5.sap.com sends CORS but no CORP, so sap-ui-core.js and sandbox.js were blocked and the launchpad stayed blank in vscode.dev while @vscode/test-web showed it. The page's CDN tags and every script/link/img UI5 creates toward the CDN now load with crossorigin=anonymous. Checked in vscode.dev: all launchpad tiles render. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
PR tests: 🟢 passCommit:
ADT lifecycle: PASSCommit: aa9be29 · SDK 8.4.3 · VSP baac6f4c97fb3ea1dee9b7772e24d52855af2985 124 PASS, 4 N/A, 3 MISSING Functional operations, active readback, cleanup and warm-swap checks determine the required gate. Timing advisory: QUIETClient wall time in ms. VSP update includes Check and Activate. Cold REPORT/DDLS are measured too. Parallel CI job; operations within each server are sequential. Reference: median of ABAP-FS/CLAS/edit, ABAP-FS/CLAS/readback-active, ABAP-FS/INTF/edit, ABAP-FS/INTF/readback-active; current 37.5 ms. History: 5/5 compatible green main runs (newest first; fewer when unavailable). Each run is normalized by its own reference before taking the main median.
Warn when at least 2 operations exceed 1.3x, or any operation reaches 2x. Timing never fails the CI gate.
Required merge checks: test + scan. ADT lifecycle timing, Docker, gogen, preview, size and queue are advisory on PRs; lifecycle functional checks remain required (Alice, 2026-10-07). |
… the desktop code
Data Preview's panel and the SQL notebook (serializer, controller, New SQL
notebook) move out of extension.js into data-preview-view.js and sql-notebook.js,
which take vscode, the client and lib as parameters. The desktop passes its Osd
over HTTP as before; the browser entry passes new Osd("https://osd.invalid",
gatewayFetch), the same client calling the in-worker gateway. ABAP and SQLScript
cells say they are not available in the browser instead of failing.
Built by codex-z (glm-5.3); desktop suite 233 passing; web test red without the
command registration.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
… pattern it broke Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
…quest bodies over the Fiori fetch bridge; serve-vscode-web grants CORS to VS Code origins only
- MUST: the extracted Data Preview captured launcher/managedUrl when the panel
opened, so Refresh after Start still said stopped. They are read on every load
again (systemState()), as before the extraction; test fails without it.
- fetch(new Request(gateway, {method: POST, body})) lost its body (a stream) on
the bridge: the Request is read out first, init overriding it as fetch does.
- serve-vscode-web.mjs answered CORS * on the loopback address: now only
vscode.dev, *.vscode-cdn.net and localhost (OSD_WEB_ORIGINS overrides), and
no dot-files in local mode.
- equiv-vscode-hosts: F8 tries the browser's own command name first.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
…uest/init rejects like fetch Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
… and where the wasm is Co-Authored-By: Claude Opus 5.5 <[email protected]>
…DB, as the Node host does Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e bundle, loaded lazily Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the UI and checks the DuckDB gateway Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s JSON in a modal editor, the cell below the fold Co-Authored-By: Claude Opus 5.5 <[email protected]>
… not a gateway that never answers Co-Authored-By: Claude Opus 5.5 <[email protected]>
…DP tile and SQLScript cells do there Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ase asks for it
build-vsix's marketplace profile dropped dist/ and the browser field ("no web
bundle before S2"). With OSD_VSIX_WEB=1 it keeps both and fails closed when
dist/web/extension.js is missing; without it nothing changes, so a dist/ left
over from a local build never ships by accident. release.yml builds
web:vscode fresh and sets the flag, so vscode.dev installs the Marketplace
extension directly.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
…, gateway media, outside links
The launchpad opens a non-UI5 tile in a new window (on GitHub Pages too).
A webview cannot, so the page's runtime routes window.open, link clicks and
form submits: a gateway page is fetched by the extension and rendered in a
panel (in place for a link or form, in a new panel for a new window), an
/app/ page opens as a Fiori page, an outside address goes to openExternal.
Clicks are taken in the capture phase because UI5 stops its own, and stopped
before VS Code's webview link handler, which ignores defaultPrevented and
opened the bare webview host page beside the GitHub window.
The same runtime gives every page a WebSocket for /sap/bc/apc/ that the
extension drives through preview-backend's openChannel/channelMessage/
closeChannel, pictures and audio from the gateway as blob: URLs (img, audio,
source and the background image sap.m.Avatar paints), and script-less
sandboxed srcdoc frames (the WEBGUI HTML viewer) same-origin so their forms
are routed too.
The SMW0 media are copied to dist/web/media and read by a W3MI loader over
the extension's own files ('%' stored as '@'). The launchpad's HEAD on ADT
discovery is answered 404 in the page, so the Workbench is greyed as on
Pages. Also fixes the sandbox.js match, which the CORS-mode crossorigin
attribute had broken (component URLs were no longer rebased).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… shows Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ey mode Co-Authored-By: Claude Opus 5.5 <[email protected]>
…as the preview's own launchpad Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
… its files instead of refusing them (critic r3 MUST) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
…x rewrite, injective media names, bounded media cache, observer works per attribute (critic r3) page-host.mjs holds the parts without VS Code: pageChannels registers an open before its first await, so closeAll (dispose, navigate, new HTML) and an apc-close of a CONNECTING socket cancel it, and drops sends of an ended document; sandboxScriptlessFrames parses attributes and tokens case-insensitively and touches only srcdoc frames without src; mediaFileName escapes @ and % with @ (injective). The page runtime revokes blobs no element shows past 16, forgets failed loads, scans only added subtrees, hooks each frame once, and records what played. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ork over frames, and that the demos' music plays Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ound, media file names Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… rewrite, media blobs revoked only when the live document no longer uses them (critic r4) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eAttribute, the src setter); tile test of the copied and the cleared media cases Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, media revoked only when unused (critic r4) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he in-use scan reads shadow trees, CSSOM rules and treats a frame past the depth bound as using everything Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ
Draft: open-steamgate in vscode.dev. The browser entry of the VS Code extension grows from a probe to a usable extension, and the PR preview publishes it at
<preview>/vscode-web/for Developer: Install Extension From Location...In this draft so far:
scripts/stage-vscode-web.mjs+ apreview.ymlstep: the web extension as a plain directory inside the preview build, built after every preview check;web:vscode:testwas red on main);scripts/equiv-vscode-hosts.mjs: the same Playwright scenario on openvscode-server (desktopmain) and @vscode/test-web (browser), text compared and screenshots side by side.Coming in this PR:
fetch;🤖 Generated with Claude Code
https://claude.ai/code/session_01J7SujA8XPm3nV6t2r2bFzZ