feat(git-id-switcher): add event-driven sync check, settings, and i18n#360
Merged
Merged
Conversation
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
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
syncCheck.enabled/syncCheck.onFocusReturnconfiguration settings (package.json)onDidChangeWindowState(debounced 500ms),onDidChangeWorkspaceFolders, andonDidChangeConfigurationevent listenersswitcher.ts(respectssyncCheck.enabledsetting)package.nls+l10n/bundle.l10n)resolveSyncMismatchcommand registrationTest plan
npx tsc --noEmit— no compile errorsnpm run lint— 0 errors (warnings are pre-existingno-consoleonconsole.log/debug)npm run test:coverage— statement coverage 100% maintainednode out/test/i18n.test.js— all 16 languages pass key coverage (package.nls + bundle.l10n)npm run test:e2e) — verifysyncCheck.enabledandsyncCheck.onFocusReturndefaultsgit config --local user.email "wrong@example.com"→ refocus window → verifysyncCheck.enabled: false→ verify no warning appears🤖 Generated with Claude Code