Skip to content

Commit ced51d0

Browse files
committed
Improved docs
1 parent 42e371d commit ced51d0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/language/provider.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,19 @@ exports.initialise = async (context) => {
136136
}
137137

138138
item.detail = detail;
139-
item.documentation = new vscode.MarkdownString(`${column.COLUMN_TEXT} (\`${definedAs.db}.${definedAs.table}\`)`);
139+
140+
const docs = [];
141+
142+
if (column.SYSTEM_COLUMN_NAME && column.SYSTEM_COLUMN_NAME !== column.COLUMN_NAME)
143+
docs.push(`${column.COLUMN_NAME.toLowerCase()} (${column.SYSTEM_COLUMN_NAME})`);
144+
145+
if (column.COLUMN_TEXT)
146+
docs.push(column.COLUMN_TEXT);
147+
148+
docs.push(`(\`${definedAs.db}.${definedAs.table}\`)`);
149+
150+
item.documentation = new vscode.MarkdownString(docs.join(`\n\n`));
151+
140152
items.push(item);
141153
});
142154
} else {

0 commit comments

Comments
 (0)