Repository navigation
π What's New in v1.0.13
β¨ Features & UI Improvements
- VS Code Built-in Style Masked Diff View (
getMaskedDiffView):- Added full side-by-side diff support for
.env*files when selecting Open with masked from Source Control, Timeline, orvscode.diff. - Computes line-aligned diffs using LCS and key-aware hunk alignment (
computeAlignedDiffRows), highlighting added (+), removed (-), and modified (~) lines with diagonal filler rows for staggered hunks while keeping all secret values masked with*. - Supports inline character-level diff highlighting (
appendInlineDiffText) when an environment variable's key name is edited in place alongside its value. - Added a compact editor header bar with
Original (Before)/Modified (After)side badges, masked key counters, and live diff summary pills (+added,~modified,-removed).
- Added full side-by-side diff support for
- Redesigned Native VS Code Editor & Diff UI:
- Upgraded both the single Masked View and Masked Diff View with a full-height (
100vh) editor layout, line-number gutters, hover highlights, and native VS Code.envsyntax coloring (#9cdcfefor keys,#ce9178for masked values,#6a9955italic for comments).
- Upgraded both the single Masked View and Masked Diff View with a full-height (
π Bug Fixes
- Preserve Git Diff View When Opening
.env*Files (#8, #9):- Fixed an issue where opening a changed
.env*file from Source Control triggered overlapping confirmation prompts and collapsed the diff view into a single read-only tab showing only the old (HEAD) revision. - Deduplicated the QuickPick prompt across both sides of a diff editor and used
workbench.action.reopenTextEditorwhen Open with Default Editor is chosen so the native side-by-side Git diff (Original β Modified) is preserved.
- Fixed an issue where opening a changed
- Accurate
Original (Before)vsModified (After)Diff Ordering & Live Staging:- Added multi-tier diff side detection combining VS Code's internal
webviewPanel.options.customClasses("original"vs"modified"),TabInputTextDiffinspection, and chronological Git ref ordering (HEAD~n/sha^/ commit SHAs βHEADβ Staged Index""/"~"β Working Treefile://). - Fixed live staging while a
Working Treediff (git:?ref="~"vsfile://) is open so that when VS Code'sGitFileSystemProviderupdatesref: "~"to match the staged index,Original (Before)retains theHEADcontent instead of being overwritten byModified (After). - Added per-panel render generation tokens (
panelRenderGeneration) to prevent asynchronous single-view resolution from overwriting a paired diff view.
- Added multi-tier diff side detection combining VS Code's internal
- Protect Restored
.env*Tabs on VS Code Startup (#7):- Added explicit
activationEvents(onLanguage:dotenv,workspaceContains:**/.env*,onStartupFinished) soenv-protectoractivates immediately on startup. - Added
protectRestoredEnvTabsto intercept.env*tabs (both single text editors and diff editors) restored from a previous session in the built-in editor without user authorization, re-routing them throughenv-protector.
- Added explicit
π§ͺ Testing, Automation & CI/CD
- Comprehensive Test Suite (
src/test/extension.test.ts):- Added 23 unit and end-to-end integration tests covering
getMaskedView,getMaskedDiffView,computeAlignedDiffRows, in-place key+value edits, Git ref parsing & ordering (Unstaged, Staged, Timeline, parent commits, merge conflict stages), live staging, and startup tab restoration protection.
- Added 23 unit and end-to-end integration tests covering
- GitHub Actions Workflows:
- Added
.github/workflows/ci.ymlrunning Biome checks, production builds, VSIX packaging, and the full VS Code extension test suite acrossubuntu-latest,windows-latest, andmacos-latest. - Added
.github/workflows/release.ymlfor automated release verification, VSIX packaging, and GitHub Release asset publishing.
- Added
- Automated Visual Asset Generator (
scripts/):- Added
scripts/generate-assets.jsandscripts/capture-runner.jsusing Chrome DevTools Protocol (CDP) andffmpegto automatically capture all README screenshots and GIFs (assets/diff-masked.png,assets/masked.png,assets/dialog.png,assets/commands.png,assets/add.gif,assets/edit.gif,assets/remove.gif).
- Added
π§ Maintenance & Dependencies
- Updated minimum VS Code engine target and
@types/vscodeto^1.146.0. - Migrated linting/formatting toolchain fully to
@biomejs/biome2.6.7, removing legacyeslint,prettier,bufferutil, andutf-8-validatedependencies. - Upgraded
jsdom(^31.0.1),typescript(^6.0.3),webpack(^5.112.2),webpack-cli(^7.3.1),@vscode/test-cli(^0.0.15), and@vscode/test-electron(^3.1.0).
Full Changelog: 1.0.12...1.0.13