From 4742aa1b9cfdd1620c0f5444c21d1bd6d2490a56 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Thu, 3 Sep 2026 10:02:27 +0800 Subject: [PATCH] docs(guide): sync onReferenceFile(path, isDir) signature --- docs/external-plugin-guide.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/external-plugin-guide.md b/docs/external-plugin-guide.md index 29ef27d..3636563 100644 --- a/docs/external-plugin-guide.md +++ b/docs/external-plugin-guide.md @@ -256,7 +256,10 @@ interface TabComponentProps { // 以下由内置 tab 使用,外部 tab 可忽略: expanded?: string[] // 文件树的展开目录集 onToggleDir?: (path: string) => void - onReferenceFile?: (path: string) => void + // 在会话 composer 插入一条 @ 引用。isDir=true 为目录:纯文本 `@dir/`, + // 保留宿主文件夹装饰与补全;false 为文件:走宿主结构化引用 chip + // (显示 @basename、序列化为完整 @path),宿主拒绝时回退纯文本。 + onReferenceFile?: (path: string, isDir: boolean) => void onOpenFile?: (path: string) => void onOpenDiff?: (tab: SidebarTab) => void onSubagentJump?: (childSessionId: string) => void