Conversation
|
Co-authored-by: aarne <82001+aarne@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bridge | 16bbf70 | Commit Preview URL Branch Preview URL |
Mar 06 2026, 07:23 AM |
Co-authored-by: aarne <82001+aarne@users.noreply.github.com>
|
don't keep anything for compatibility. formatBridge is used only internally in the playground. you can change that also to use the new code |
…strict formatter Co-authored-by: aarne <82001+aarne@users.noreply.github.com>
Done in 16bbf70. I removed the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR wires Bridge’s CST-based pretty-printer into the Language Server
textDocument/formattingpath so editors can format.bridgefiles natively. It also hardens formatter behavior for real-time editing by requiring syntactically valid input in strict mode and proving idempotency.Strict formatter API for editor use
prettyPrintToSource(...)inbridge-parserwith support for LSP formatting options:tabSize: numberinsertSpaces: booleanparseBridgeCst(...)export for explicit CST parse validation.formatBridge(...)compatibility API/export.prettyPrintToSource) with a local safe wrapper to preserve UX while editing invalid drafts.Formatter safety guarantees
prettyPrintToSource, including shared test utilities for snippet-style formatting assertions.Language Server formatting integration
onInitializenow advertisesdocumentFormattingProvider: true.connection.onDocumentFormatting:TextDocumentswarn+null)prettyPrintToSource(..., params.options)TextEdit.replace(...)VS Code extension UX
[bridge].> [!WARNING]
>
>
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.