fix(connection): refresh and display connection notes
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user