diff --git a/vscode/webview-ui/src/codeReader/BlockTree.tsx b/vscode/webview-ui/src/codeReader/BlockTree.tsx index c2cef73..c984b58 100644 --- a/vscode/webview-ui/src/codeReader/BlockTree.tsx +++ b/vscode/webview-ui/src/codeReader/BlockTree.tsx @@ -36,19 +36,22 @@ export interface BlockTreeState { onToggleFold: (id: string) => void } -/** 一层代码块:左边一条竖线标出这一层,每块的子块紧跟在它下面、再往右缩进一层。 */ -export function BlockLevel({ blocks, tree }: { blocks: BlockView[], tree: BlockTreeState }): ReactElement { +/** + * 一层代码块:左边一条竖线标出这一层,每块的子块紧跟在它下面、再往右缩进一层。 + * kind 是这一层所属块的种类(顶层没有),悬停那个块时竖线换成它的颜色。 + */ +export function BlockLevel({ blocks, kind, tree }: { blocks: BlockView[], kind?: BlockKind, tree: BlockTreeState }): ReactElement { return ( -