diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4fc957bd..44751cf2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -251,3 +251,42 @@ jobs: vsix-listing.txt retention-days: 14 if-no-files-found: error + + vsix-in-ide: + name: Code-XR extension in the IDE (ubuntu-latest) + # #262: the .vsix the package job built installs from file in the built + # IDE, activates, and shows its Code-XR tree (apps/ide/scripts/vsixE2e.mjs, + # Playwright against the real window); any vscode API it uses at start-up + # that the IDE's extension host lacks fails the job. + needs: package + if: github.event_name != 'push' + runs-on: ubuntu-latest + env: + ELECTRON_SKIP_BINARY_DOWNLOAD: '0' + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + + - name: Install + run: npm ci + + - name: Download the VSIX + uses: actions/download-artifact@v4 + with: + name: code-xr-vsix + path: vsix + + - name: Allow the Chromium sandbox + run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 + + - name: Build the IDE + run: npm run ide:build + + - name: Install and run the extension (virtual display) + run: xvfb-run -a node apps/ide/scripts/vsixE2e.mjs "$(ls vsix/apps/vscode-extension/artifacts/*.vsix | head -n 1)" diff --git a/apps/ide/README.md b/apps/ide/README.md index 9c5ec27be..7fa636bbd 100644 --- a/apps/ide/README.md +++ b/apps/ide/README.md @@ -60,7 +60,7 @@ Technology choices for the scaffold: `src/main/analysis/analysisService.ts` runs the extension's own pipeline (`AnalysisOrchestrator`) with a `CoreContext` built from the IDE's host; the workspace storage VS Code would give is a folder per project under `/core/workspaces/`. The IDE registers its own `LaunchNotifier`, so a finished launch opens in the window that asked instead of a browser, and its server settings use the core's `lateralPanel` open mode: scenes are served over plain HTTP on loopback (a secure context, so WebXR still works) with no self-signed certificate to accept. -The scene is a `WebContentsView` laid over the slot the renderer reserves (`analysis/sceneView.ts`), never an `