A minimal VS Code extension that wraps the typesync CLI (validate, validate-data,
generate-ts, generate-zod, generate-rules, generate-graph) and shows pass/fail
status for each in a webview dashboard plus a status bar indicator.
Development
npm install
npm run compile # For local development/testing
npm run bundle # To test the bundled output
Then open this folder in VS Code and press F5.
Publishing
- Verify Publisher: The
publisherinpackage.jsonis set toAxelSorensen. - Get a PAT: Create a Personal Access Token on Azure DevOps with
Marketplace (Publish)scope. - Login & Publish:
npx vsce login AxelSorensen npm run publish
Commands
All available via the command palette (Cmd+Shift+P):
TypeSync: Open DashboardTypeSync: Validate SchemaTypeSync: Validate Data (Emulator/Live)TypeSync: Generate TypeScript ModelsTypeSync: Generate Zod SchemasTypeSync: Generate Firestore RulesTypeSync: Generate Schema GraphTypeSync: Run All Checks
Settings
Configurable under typesyncDashboard.* in VS Code settings — schema
definition path, output file paths/targets, emulator host, and project id.
By default the project id is read from .firebaserc if not set explicitly.
Requirements
- The
typesyncCLI must be installed and onPATH. - For
validate-data, a running Firestore emulator (or live credentials) is required, matching whatever you'd normally pass to the CLI directly.