Dev-Sync for VS Code
Run Dev-Sync schema scans, review drift, and generate migrations without leaving your editor.
Requirements
- VS Code 1.80 or newer
- A Dev-Sync account at https://www.dev-sync.dev
- A Dev-Sync dashboard project with a configured repository and database connection
@dev-sync/cli installed globally when using offline scans
Getting started
- Run Dev-Sync: Sign In to Dev-Sync from the Command Palette.
- Complete browser device authorization.
- Open the repository associated with a Dev-Sync dashboard project.
- Run Dev-Sync: Select Dashboard Project and choose the project for this workspace.
- Run Dev-Sync: Scan Schema.
Run Dev-Sync: Create Project to create one without leaving VS Code. The extension writes a read-only .devsync/config.json first, then synchronizes the project to your account when signed in. Local configuration and scanning remain available if the service is offline.
The selected project ID is stored in workspace settings. Access and refresh tokens are stored in VS Code SecretStorage and are never written to workspace configuration.
Commands
- Dev-Sync: Sign In to Dev-Sync
- Dev-Sync: Sign Out of Dev-Sync
- Dev-Sync: Select Dashboard Project
- Dev-Sync: Create Project
- Dev-Sync: Scan Schema
- Dev-Sync: Scan Locally (Offline)
- Dev-Sync: View Scan Report
- Dev-Sync: Generate Migration
- Dev-Sync: Open Dashboard
Settings
{
"devsync.apiUrl": "https://www.dev-sync.dev",
"devsync.analyzerUrl": "https://www.dev-sync.dev",
"devsync.projectId": "",
"devsync.enableDiagnostics": true,
"devsync.autoScan": false
}
devsync.apiKey remains available only as a legacy override. Device sign-in is recommended.
The optional devsync.databaseConnection setting is used only by local extension features. Cloud scans use the database connection configured for the selected dashboard project.
Development
npm ci
npm run compile
npm run compile-tests
npm run package:check
Press F5 from the extension project to open an Extension Development Host.
Privacy and security
- Authentication tokens use VS Code SecretStorage.
- Project access is enforced by the dashboard API for every request.
- Database credentials are not sent from the extension during cloud scans.
- Signing out removes the locally stored Dev-Sync session.
Privacy policy: https://www.dev-sync.dev/privacy
Terms of service: https://www.dev-sync.dev/terms
License
MIT