feat(project-tree): Undo restores files deleted in the Project view (#1103)

Ctrl+Z / Cmd+Z in the Project view (and Edit › Undo while it has focus) reverts the latest file operation there: a delete as well as a move or rename. Deleted files come back from their last Local History snapshot, folders are re-created and the restored items selected; items without a snapshot are named in a warning. Edit › Undo reaches the view through a new registerUndoHandler contribution; the Project view is found by a data attribute instead of its translated aria-label (also fixes the New popup's fallback anchor).
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-04 04:53:48 +08:00
1 джерело fe0ee338f4
коміт 5ad5dc2a28
8 files changed
+184 -11

No files matched your search

+3 -1
Переглянути файл
@@ -5784,5 +5784,7 @@
"Unexpected token": "意外的标记",
"Syntax": "语法",
"Syntax errors": "语法错误",
"Reports code the built-in parser cannot read, in files no language server checks (none is configured for the language, or it is not installed, stopped or crashed). A running language server reports syntax errors itself.": "报告内置解析器无法解析的代码,仅针对没有语言服务器检查的文件(该语言未配置语言服务器,或未安装、已停止、已崩溃)。语言服务器运行时由它自己报告语法错误。"
"Reports code the built-in parser cannot read, in files no language server checks (none is configured for the language, or it is not installed, stopped or crashed). A running language server reports syntax errors itself.": "报告内置解析器无法解析的代码,仅针对没有语言服务器检查的文件(该语言未配置语言服务器,或未安装、已停止、已崩溃)。语言服务器运行时由它自己报告语法错误。",
"Some items could not be restored": "部分项目无法恢复",
"Not in Local History: {names}. They are in the Trash.": "本地历史中没有:{names}。它们在回收站中。"
}