✨ feat(vscode): 代码阅读的 React 钩子统一成一张钩子卡片,照签名排参数和返回,自定义钩子有自己的卡片

This commit is contained in:
cruldra committed 2026-10-16 20:18:21 +11:00
1 parent 78d0c9dada
commit e7059bcc73
17 files changed
+1409 -589

No files matched your search

+2 -1
View File
@@ -7,7 +7,7 @@ import type { FileAttribute } from '../attributes'
import type { BlockSlot, CallTreeTarget, ChainSlot, CommentTarget, SourceColors } from '../blockView'
import type { ContractMiss } from '../callTree/endpoint'
import type { CallTree } from '../callTree/model'
import type { BlockAttributes, BlockConcept, KindBadge, Markdown, PreviewTable, PreviewText, PropertyItem, PropertyRow, SourceRange } from '../contract'
import type { BlockAttributes, BlockConcept, KindBadge, Markdown, PreviewTable, PreviewText, PropertyItem, PropertyRow, SourceRange, ThemeColor } from '../contract'
import type { OpenedFrom } from '../diff/diffBase'
import type { DocumentDiff } from '../diff/previewDiff'
import type { ShownName } from '../nameResolution'
@@ -84,6 +84,7 @@ interface PageCardBase {
concepts: BlockConcept[]
commentTarget?: CommentTarget['kind']
badge?: KindBadge
tint?: ThemeColor
slot?: BlockSlot
step?: ChainSlot
callTree?: CallTreeTarget