Skip to content

feat(git-id-switcher): add event-driven sync check, settings, and i18n#360

Merged
nullvariant merged 1 commit into
mainfrom
feat/sync-check-events-settings-i18n
Mar 18, 2026
Merged

feat(git-id-switcher): add event-driven sync check, settings, and i18n#360
nullvariant merged 1 commit into
mainfrom
feat/sync-check-events-settings-i18n

Conversation

@nullvariant

Copy link
Copy Markdown
Owner

Summary

  • Add syncCheck.enabled / syncCheck.onFocusReturn configuration settings (package.json)
  • Integrate sync check into onDidChangeWindowState (debounced 500ms), onDidChangeWorkspaceFolders, and onDidChangeConfiguration event listeners
  • Add post-switch sync check in switcher.ts (respects syncCheck.enabled setting)
  • Localize all sync check UI strings to 17 languages (package.nls + l10n/bundle.l10n)
  • Add E2E tests for new configuration defaults and resolveSyncMismatch command registration
  • Document sync check feature in README (en/ja): feature list, settings reference, and "How It Works" section
  • Add CHANGELOG entry for 0.17.0

Test plan

  • npx tsc --noEmit — no compile errors
  • npm run lint — 0 errors (warnings are pre-existing no-console on console.log/debug)
  • npm run test:coverage — statement coverage 100% maintained
  • node out/test/i18n.test.js — all 16 languages pass key coverage (package.nls + bundle.l10n)
  • E2E tests (npm run test:e2e) — verify syncCheck.enabled and syncCheck.onFocusReturn defaults
  • Manual: apply profile → git config --local user.email "wrong@example.com" → refocus window → verify ⚠️ warning
  • Manual: set syncCheck.enabled: false → verify no warning appears

🤖 Generated with Claude Code

Add syncCheck.enabled / syncCheck.onFocusReturn configuration settings,
integrate sync check into workspace folder change, config change, and
window focus return events (debounced 500ms), localize all sync check
UI strings to 17 languages, and document the feature in README (en/ja)
and CHANGELOG. Bump version to 0.17.0.

🖥️ IDE: [Cursor](https://cursor.sh)
🔌 Extension: [Claude Code](https://claude.ai/download)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Model-Raw: claude-opus-4-6-20250514
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud

Copy link
Copy Markdown

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nullvariant nullvariant merged commit 2e065b8 into main Mar 18, 2026
25 of 26 checks passed
@nullvariant nullvariant deleted the feat/sync-check-events-settings-i18n branch March 18, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants