Add folder-level revert action in Git changes tree (#1390)

* feat: add folder-level revert for git changes

* Fix bot comments. Fix confirmation dialog for mobile view.

* fix

---------

Co-authored-by: Konstantin Zolin <zolin_ka@vk.com>
Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
kostazol
2026-06-08 15:55:56 +03:00
committed by GitHub
co-authored by Konstantin Zolin Bohdan Triapitsyn
parent 7b1b3167a4
commit 9b52222ef1
11 changed files with 158 additions and 14 deletions
@@ -566,6 +566,12 @@ export const dict: Record<I18nKey, string> = {
'gitView.changes.revertAllDescriptionPlural': '這將捨棄列表中 {count} 個檔案的本地變更。',
'gitView.changes.revertAllDescriptionSingle': '這將捨棄列表中 {count} 個檔案的本地變更。',
'gitView.changes.revertAllDialogTitle': '還原所有變更?',
'gitView.changes.revertDirectoryAria': '還原 {path} 中的變更',
'gitView.changes.revertDirectory': '還原資料夾',
'gitView.changes.revertDirectoryDescriptionPlural': '這將捨棄 {path} 下 {count} 個檔案的本地變更。',
'gitView.changes.revertDirectoryDescriptionSingle': '這將捨棄 {path} 下 {count} 個檔案的本地變更。',
'gitView.changes.revertDirectoryDialogTitle': '還原資料夾變更?',
'gitView.changes.revertDirectoryTooltip': '還原資料夾變更',
'gitView.changes.revertFileAria': '還原 {path} 的變更',
'gitView.changes.revertFileTooltip': '還原變更',
'gitView.changes.reverting': '正在還原...',