Sillbeam for VS Code
Local architecture diagnostics for Symfony applications with an existing Sillbeam Core installation. Core supplies the architecture rules, findings, suggestions and graphs. The extension runs the installed Core and presents its results. Sillbeam Core
Install and use
- Use VS Code 1.144.0 or a later 1.x version (
engines.vscode: ^1.144.0), local PHP 8.4+, and a Symfony application with a compatible Core installation. The compatibility section below lists the versions and revisions covered.
- In VS Code, choose Extensions → … → Install from VSIX… and select
sillbeam-for-vs-code-0.1.0.vsix. Reload if requested. To build the VSIX from this checkout, run npm ci --ignore-scripts and npm run package.
- Open and trust the workspace. Sillbeam searches Composer applications up to eight directory levels and 5,000 directories, including
backend/, app/ and monorepos. Multiple applications are selected through Quick Pick; multi-root workspaces are supported. The last chosen application is reused when still present.
- Open the Sillbeam activity-bar container. Use Run Check or save a relevant source/configuration file. Findings appear as line diagnostics and in Problems. The native diagnostic hover shows the original message once; Sillbeam adds the Core relationship, hint and rule without repeating that message; Locations opens the verified file/line.
- Run Check updates the Architecture summary and displays the available Core diagnoses. Doctor runs only on request. Generate or focus a graph and open its SVG image in a script-free webview; keyboard-accessible zoom and scrolling are available. Module inspection selects the full descriptor identity and displays Core's original text, optionally verbose.
Deutsch: Über Erweiterungen → … → Aus VSIX installieren… installieren. In einem vertrauenswürdigen Symfony-Workspace den Sillbeam-Bereich öffnen und Architektur prüfen wählen. Die Bedienelemente folgen der VS-Code-Sprache. Für Core v0.4.0 lässt sich die Diagnosesprache separat über sillbeam.language einstellen. Core v0.3.0 zeigt seine ursprüngliche CLI-Ausgabe.
Core checks saved files only. Editing invalidates editor diagnostics immediately. Save and check again before navigating to a finding in a dirty document. Incomplete analyses remain explicitly incomplete. Exit 1 is a normal violation result. Findings without a verified path and line remain visible in Locations. Navigation stays within the canonical active application. To uninstall, choose Uninstall in the extension's menu.
The extension ID for CLI installation and removal is WebSign-Dev.sillbeam-for-vs-code.
code --install-extension sillbeam-for-vs-code-0.1.0.vsix
code --uninstall-extension WebSign-Dev.sillbeam-for-vs-code
Compatibility and current limits
| Core |
Integration |
Verified version |
| v0.3.0 |
Original JSON check and CLI explanations |
v0.3.0 at 5a6694c5a06fb78adc08ab61215922e953a9368d |
| v0.4.0 line |
Core Data Live v1 with capability and locale discovery |
dev-v0.4.x at 522511fc4e68a6f163cca72a53c47f35cf3a493c |
Local acceptance covers Linux, PHP 8.5, Symfony 7.4 and VS Code 1.144.0. The v0.4.0 result applies to the revision above. A stable Core v0.4.0 tag was unavailable for acceptance. The GitHub workflow defines additional Windows and macOS checks.
Use a trusted workspace with a real local filesystem. Restricted Mode and virtual workspaces disable the extension. PHP and the application must be accessible to the VS Code extension host in the same filesystem environment. Remote extension hosts such as SSH, WSL and Dev Containers remain unverified. On Windows, cancellation targets the PHP child process. Termination of its descendants remains unverified.
Discovery does not follow directory symlinks or report every depth-limit hit. For a deeper or symlinked application, open its canonical workspace location and set sillbeam.applicationRoot if needed. Module inspection selects full descriptor FQCNs and opens Core’s text in a read-only editor.
The extension is distributed under MIT. The VSIX includes the license and third-party notices. Release notes for v0.1.0
Architecture diagnoses
With Core v0.4.0, the extension checks capabilities and requests Live v1 in the selected diagnosis language. Each diagnosis immediately shows the first Core resolution with steps in the returned language, in Core's order and with all steps intact. The labels Procedure and Possible resolution reflect Core's classification. They describe what Core suggests checking or changing. They carry no repair guarantee. Relevant cautions, file paths and configuration are visible alongside the steps. Problem context, findings and verified locations are available under Problem and background. If Core supplies no steps, the view says so. The view shows export completeness and Core's localized export issues. When Core cannot verify a project-relative path, the verdict is labeled as the result of the last check. Run Check again after editing sources outside the monitored application.
With Core v0.3.0, the extension loads the original CLI explanations after the JSON check and caches them for that saved-source snapshot. If the explanation fails to load, the architecture summary remains visible and Retry Core explanations retries the text. Full Core Explanations reveals the Architecture view.
Settings
All settings use the sillbeam. prefix and can be configured per workspace folder.
| Setting |
Default |
Meaning |
language |
auto |
Core v0.4.0 diagnosis language. auto follows VS Code, de requests German and en requests English. Unsupported locales fall back to Core’s advertised default. |
automatic |
true |
Initial and event-driven checks |
onSave |
true |
Check relevant saved editor documents |
liveMode |
false |
Check following a typing pause; reads saved files only |
saveAfterPause |
false |
Explicitly permit live mode to save the edited relevant document; never saves all documents |
debounceMs |
800 |
Coalescing delay, 100–10,000 ms |
phpExecutable |
php |
Local executable path or PATH name, without shell arguments |
timeoutMs |
60000 |
Per-process timeout, 1,000–600,000 ms |
applicationRoot |
empty |
Absolute or folder-relative Symfony root inside a workspace folder; empty enables discovery |
The diagnosis language affects Core text only. Buttons, menus and status labels follow the VS Code display language. Changing the diagnosis language refreshes Live results for the current application without running discovery again.
PHP, YAML/YML, XML, JSON/lock files, bin/console, and root Symfony .env, .env.local, .env.<environment>, .env.<environment>.local and compiled .env.local.php are relevant. Watchers and source fingerprints use the same file policy and exclude workspace settings in .vscode/settings.json. The file fingerprint hashes environment contents. Process errors omit raw CLI output. Original Core results can contain application-provided details. Editor events handle changes to clean open documents; filesystem events also invalidate closed files and external changes while a document is dirty. Composer changes also trigger rediscovery. Vendor paths, .git, node_modules, var, dist and build are excluded from source analysis scheduling. Custom Composer vendor-dir and installed-package symlinks are supported; discovery does not follow directory symlinks recursively. For deeper applications set applicationRoot explicitly. Content fingerprints are stored in each snapshot and checked before/after both JSON analysis and original-text loading, including cached text reads. Text exits must also agree with the snapshot. Source fingerprints before/after checks guard against changed disk evidence; snapshot collection is bounded at 10,000 directories and 100,000 files and fails explicitly when exceeded.
Safety and cancellation
No telemetry, network requests, source uploads, background server, auto-installation, quick fixes or configuration repairs. Workspace Trust gates discovery/execution and the manifest disables the extension in untrusted and virtual workspaces. PHP uses spawn with argument arrays and no shell. Output is bounded at 16 MiB, decoded as a stream, and processes time out or can be cancelled. Architecture runs are serialized and generation-bound. Cancelling auxiliary text output preserves a completed architecture snapshot. Changes invalidate all derived editor locations/text/graphs.
Graph files go into an isolated directory in VS Code global storage outside the application. Only regular files within that directory are accepted. SVG is checked for active/external content, embedded as an image rather than inline DOM, and protected by CSP with scripts disabled. Exit 0/1/2 may contain an SVG; 3 and 4 are distinct errors.
Development and verification
npm ci --ignore-scripts
npm run fixture
npm run fixture:live
npm run test:release
npm run fixture installs the lockfile-pinned real Symfony/Core v0.3.0 applications under ignored .test-workspace/backend and .test-workspace/app. Use Composer, PHP 8.5 as in CI, and access to the locked Composer repositories. Both fixture lockfiles require PHP 8.4.1 or later. To reuse already installed dependencies, set SILLBEAM_VENDOR_CACHE=/absolute/path/to/vendor. The script verifies the exact Core tag commit before copying them. Reference repositories are never modified.
npm test runs unit tests, the Core v0.3.0 Extension Development Host suites and a separate real untrusted-workspace suite. npm run test:release adds lint, Core Live acceptance, a fresh VSIX build, archive inspection, and installed VSIX smoke tests with both Core revisions. Archive inspection requires the PHP ZIP and SimpleXML extensions. Each smoke test installs and removes the VSIX in a disposable profile. First execution downloads VS Code 1.144.0 through the VS Code test runner unless VSCODE_EXECUTABLE_PATH points to the executable. A graphical display is required (on headless Linux use Xvfb). The trust test asserts that the workspace is untrusted.
The CI workflow runs on pushes to main and dev and on pull requests targeting either branch. Linux runs the full VS Code host suites, including the visual checks, under Xvfb. Windows and macOS run the native PHP and path tests, build and inspect the VSIX, and test it with both Core revisions. The runtime dependency audit gates the build. The full npm audit reports development findings separately. CI workflow
npm run test:visual additionally exercises the actual Architecture webview through the local Electron debugger (port 9239), saving screenshots and layout metrics under ignored artifacts/architecture-final/en. Run after compiling; requires the real fixtures and a graphical display. For German, use SILLBEAM_TEST_LOCALE=de npm run test:visual with a German language pack installed in the isolated .test-workspace/.extensions profile. Do not run fixture-mutating suites concurrently. See final Architecture QA.
npm run fixture:live creates a disposable Symfony application under .test-workspace/core-v0.4-release. It installs locked Composer dependencies and takes Core from an archive of the audited revision listed above. Set SILLBEAM_CORE_REPOSITORY if the checkout is outside the default location ../sillbeam-core. To run Live acceptance by itself after compiling, use npm run test:live. For the German UI use SILLBEAM_TEST_LOCALE=de npm run test:live with the German language pack installed in .test-workspace/.extensions. Set SILLBEAM_TEST_LANGUAGE_PACKS to the languagepacks.json created by VS Code in the profile used to install that pack. Live screenshots go under artifacts/core-live/.
For manual debugging, open this repository in VS Code and press F5. Build before launching. The test suite mutates only its disposable fixtures. See review-fix evidence and screenshots, verification and acceptance evidence and the German completion report.
Use npm run verify:vsix to check a fresh archive against its manifest, file allowlist, license notices and build output. Run npm audit --omit=dev for the bundled dependencies and npm audit for the complete development lockfile.