Professional Salesforce metadata comparison tool for VS Code. Compare individual files or entire folders against your Salesforce org. Features include single-file diff, folder diff with multiple tabs, and comprehensive metadata support. No telemetry. Org content stays in memory via virtual documents
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Authenticated connection to at least one Salesforce org
Extension Settings
This extension contributes the following settings:
mdapiDiff.enabled: Enable/disable the extension
mdapiDiff.ignoreWhitespace: Ignore whitespace differences in diff view
mdapiDiff.orgCacheDuration: Cache duration for connected orgs
mdapiDiff.createBackups: Create backup files before applying changes
mdapiDiff.enableCancellation: Enable cancellation support (recommended)
mdapiDiff.logLevel: Set logging level (DEBUG, INFO, WARN, ERROR)
Commands
MDAPI Diff: Compare local file with org version (cancellable)
MDAPI Diff: Compare Folder with Org: Compare entire folder with multiple diff tabs
Select Salesforce Org: Choose which org to compare against
Refresh Connected Orgs: Refresh the list of available orgs
Cancellation Support
All long-running operations can be cancelled instantly:
Press ESC or click the cancel button in any progress notification
Immediate response: Operations stop within 1-2 seconds
Clean shutdown: All temporary files, processes, and virtual documents are cleaned up
No side effects: System returns to a clean state, ready for the next operation
Correlation tracking: Each operation gets a unique ID for troubleshooting
What Gets Cleaned Up
✅ External processes: Salesforce CLI commands are terminated
✅ Temporary directories: All .mdapi-diff/ folders are removed
✅ Package.xml files: Cleanup of generated metadata manifests
✅ Virtual documents: In-memory org content is disposed
✅ File handles: All open file streams are closed
✅ Backup staging: Incomplete backup operations are rolled back
Release Notes
1.0.5
Initial release with full Salesforce metadata comparison capabilities.