DIFF-109:Git 丢弃确认与工作区刷新
对照 next/src/features/json/VaultGitDialog.tsx。
行为
- 丢弃变更前弹出 overlay 确认(
git.confirmDiscard),确认后才GitEngine.discard。 pull/discard/abort-merge/resolve-conflict/continue-operation成功后调用onVaultRefresh,JSON 与随手记重新加载当前文件并刷新 Vault 树(与 ElectronrefreshAfterGitAction一致)。pull失败时同样onVaultRefresh,对齐 Electron 在 pull 失败后load+onVaultChange。
文件
VaultGitDialog.kt:GitWorkingTreeAction、confirmDiscardPath、onVaultRefreshJsonScreen.kt/QuickNoteScreen.kt:传入onVaultRefreshTranslator.kt:git.confirmDiscard