We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3353b66 + c5a5eb2 commit 0270fd5Copy full SHA for 0270fd5
src/aiProviders/continue/listTablesContextProvider.ts
@@ -14,6 +14,7 @@ import {
14
getSqlContextItems
15
} from "../context";
16
import Configuration from "../../configuration";
17
+import { Db2ContextItems, getContextItems } from "../prompt";
18
19
const listDb2Table: ContextProviderDescription = {
20
title: "list Db2i Tables",
@@ -82,9 +83,9 @@ class ListDb2iTables implements IContextProvider {
82
83
}
84
85
} else {
- const tablesRefs = await getSqlContextItems(extras.fullInput);
86
- for (const table of tablesRefs.items) {
87
- contextItems.push(table);
+ const tablesRefs = await getContextItems(query);
+ for (const tableData of tablesRefs.context) {
88
+ contextItems.push(tableData);
89
90
91
return contextItems;
0 commit comments