fix(completion): show column comments inline in SQL completions

This commit is contained in:
t8y2 committed 2026-09-04 12:17:20 +08:00
1 parent 84b37d44a6
commit b42ad91fc2
2 files changed
+16

No files matched your search

@@ -4608,6 +4608,13 @@ function buildColumnDetail(column: SqlCompletionColumn): string {
if (column.isNullable === false) {
detail += " NOT NULL";
}
// Surface the column comment inline in the completion row (e.g. Chinese
// field notes) so it shows without opening the side info panel. This was
// dropped when qualified completion queries were optimized; keep it here.
const comment = column.comment?.trim();
if (comment) {
detail += ` -- ${comment}`;
}
return detail;
}