功能: 文件与目录支持重命名(FE-020),挂起面板展示旧名→新名

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fenghp
2026-06-11 13:11:55 +08:00
co-authored by Cursor
parent 23062e8333
commit 4ba868482b
12 changed files with 281 additions and 9 deletions
@@ -235,7 +235,11 @@ function PendingRow({
<FileText className="size-3.5 shrink-0 text-muted-foreground" />
)}
<span className="min-w-0 flex-1">
<span className="block truncate text-sm">{change.name}</span>
<span className="block truncate text-sm">
{change.status === "pendingRename" && change.sourceServerPath
? `${change.sourceServerPath.slice(change.sourceServerPath.lastIndexOf("/") + 1)} → ${change.name}`
: change.name}
</span>
<span className="block truncate font-mono text-[10px] leading-3 text-muted-foreground">
{change.serverPath}
</span>