Skip to content

1.0.13

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Nov 11:17

πŸš€ 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, or vscode.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).
  • 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 .env syntax coloring (#9cdcfe for keys, #ce9178 for masked values, #6a9955 italic for comments).

πŸ› 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.reopenTextEditor when Open with Default Editor is chosen so the native side-by-side Git diff (Original ↔ Modified) is preserved.
  • Accurate Original (Before) vs Modified (After) Diff Ordering & Live Staging:
    • Added multi-tier diff side detection combining VS Code's internal webviewPanel.options.customClasses ("original" vs "modified"), TabInputTextDiff inspection, and chronological Git ref ordering (HEAD~n / sha^ / commit SHAs β†’ HEAD β†’ Staged Index "" / "~" β†’ Working Tree file://).
    • Fixed live staging while a Working Tree diff (git:?ref="~" vs file://) is open so that when VS Code's GitFileSystemProvider updates ref: "~" to match the staged index, Original (Before) retains the HEAD content instead of being overwritten by Modified (After).
    • Added per-panel render generation tokens (panelRenderGeneration) to prevent asynchronous single-view resolution from overwriting a paired diff view.
  • Protect Restored .env* Tabs on VS Code Startup (#7):
    • Added explicit activationEvents (onLanguage:dotenv, workspaceContains:**/.env*, onStartupFinished) so env-protector activates immediately on startup.
    • Added protectRestoredEnvTabs to 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 through env-protector.

πŸ§ͺ 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.
  • GitHub Actions Workflows:
    • Added .github/workflows/ci.yml running Biome checks, production builds, VSIX packaging, and the full VS Code extension test suite across ubuntu-latest, windows-latest, and macos-latest.
    • Added .github/workflows/release.yml for automated release verification, VSIX packaging, and GitHub Release asset publishing.
  • Automated Visual Asset Generator (scripts/):
    • Added scripts/generate-assets.js and scripts/capture-runner.js using Chrome DevTools Protocol (CDP) and ffmpeg to 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).

πŸ”§ Maintenance & Dependencies

  • Updated minimum VS Code engine target and @types/vscode to ^1.146.0.
  • Migrated linting/formatting toolchain fully to @biomejs/biome 2.6.7, removing legacy eslint, prettier, bufferutil, and utf-8-validate dependencies.
  • 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