A VS Code interface for the drift CLI. This extension provides visual status indicators and a summary of branch staleness compared to a remote upstream.
Important: CLI Wrapper
This extension is a UI wrapper and does not contain the detection logic itself. It executes the drift binary found in your system PATH.
Requirement: Ensure the drift CLI is installed and available on your PATH before using the extension.
Execution environment: Commands are executed in the root directory (cwd) of the first active workspace folder.
Install the Drift CLI
Run the following commands to install the drift CLI on your system:
drift.path: Default sub-path for analysis (Default: empty).
Typical Workflow
Open a Git repository in VS Code.
Navigate to the fuzzy search icon in the Activity Bar icon.
Check that the displayed settings (Base, JSON, Path) match your needs.
Click the blue Check for Upstream Changes button.
The Output Panel will automatically focus, displaying the categorized drift:
🔥 [CRITICAL]: Conflicts found in files currently being edited.
⚠️ [HIGH]: Changes in deployment or dependency files.
ℹ️ [LOW]: Minor upstream updates.
Troubleshooting
"Drift Error":
Verify that the drift CLI is installed and accessible in your system's PATH.
Check the Drift Output Channel for the specific CLI error message.
Output Channel Visibility:
If the output doesn't pop up automatically, go to View > Output and select Drift from the dropdown menu.
JSON Recorded Message:
If JSON mode is enabled, the CLI saves results to a file. The extension will report "JSON output recorded" in the channel; check your specified path for the data file.
Technical Details
Iconography:
Status updates use standard VS Code ThemeIcons for a native look and feel.
Filtering:
While the raw output prints everything, the Status Bar only turns "Warning" (Stale) if [CRITICAL] or [HIGH] items are detected.