fix(connection): refresh and display connection notes

This commit is contained in:
zipg authored and GitHub committed 2026-08-11 21:53:38 +08:00
1 parent 967084c498
commit 6ea009a586
19 files changed
+199 -19

No files matched your search

@@ -127,8 +127,9 @@ export function alignedSidebarCommentLabelWidths(items: readonly SidebarCommentA
return widths;
}
export function sidebarTreeNodeComment(node: TreeNode): string | null {
export function sidebarTreeNodeComment(node: TreeNode, showConnectionNotes: boolean): string | null {
if (!commentTypes.has(node.type)) return null;
if (node.type === "connection" && !showConnectionNotes) return null;
if (node.type === "column" && node.meta && "comment" in node.meta) {
const comment = node.meta.comment;
return typeof comment === "string" && comment ? comment : null;