fab-ai-vscode
v1.0.1
Published
VS Code extension for Fabric 1.0 DSL: syntax highlighting, IntelliSense, snippets, and commands
Readme
Fab AI VS Code Extension
The Fab AI extension adds first-class support for Fabric 1.0 DSL programming in Visual Studio Code.
Features
Syntax Highlighting for .fab files
IntelliSense & Auto-Completion via Language Server Protocol (LSP)
Code Snippets for common Fabric blocks (module, agent, executionBlock, workflow, etc.)
Error Diagnostics with FAB_#### error codes and remediation suggestions
Command Palette Integration:
Fab: Initialize Project — scaffold a new Fabric project
Fab: Build Module — compile the current .fab file
Fab: Deploy Module — deploy to local or remote Fabric runtime
Fab: Run Compliance Check — validate against GDPR, CCPA, or HIPAA profiles
Key Bindings:
Ctrl+Shift+B to build the active .fab file
Model Explorer panel to browse registered agents, execution blocks, and provenance
Debug Adapter for stepping through simulation or FPGA/quantum backends (preview)
Installation
Open the Extensions view in VS Code (Ctrl+Shift+X).
Search for Fab AI and install.
Reload VS Code to activate the extension.
Usage
Open a .fab file or create one via Fab: Initialize Project in the Command Palette.
Use IntelliSense (Ctrl+Space) to explore Fabric DSL constructs.
Build your module with Fab: Build Module or Ctrl+Shift+B.
Deploy locally with Fab: Deploy Module → choose --local, or configure a remote URL.
Run Compliance with Fab: Run Compliance Check and select a profile.
Settings
The extension contributes the following settings in settings.json:
{ "fab.enableModelExplorer": true, "fab.lsp.serverPath": "node ./dist/language-server.js", "fab.build.outDir": "build" }
Contributing
Fork the repo and create a feature branch.
Install dependencies: npm install in tooling/vscode-extension.
Build: npm run build.
Test: npm test (if tests are added).
Open a PR against main.
License
Apache-2.0 © Fabric Steering Committee
