✨ feat(vscode): 代码阅读把说明里的 @param / @return / @throws 拆到参数表、输出、异常表

This commit is contained in:
cruldra committed 2026-10-08 07:17:26 +08:00
1 parent c2982537d7
commit 0958506681
43 files changed
+1300 -323

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ function referencesInText(pieces: readonly Inline[]): Segment[] {
}
function referencesInItems(items: readonly PropertyItem[] | undefined): Segment[] {
return (items ?? []).flatMap(item => [...item.cells.flatMap(referencesInText), ...referencesInItems(item.items)])
return (items ?? []).flatMap(item => [...item.cells.flatMap(cell => 'markdown' in cell ? [] : referencesInText(cell)), ...referencesInItems(item.items)])
}
/** 属性表里(值、各层子行的格子)带引用的段。 */