Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: setEditorAutoCompletionContext when databaseList and tableList changed (#2412)

Liu Jia954c2a12d2a
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
index b47a112027..57a83a0304 100644
--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue
+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
@@ -266,6 +266,13 @@ export default defineComponent({
updateEditorHeight();
};
+ watch([databaseList, tableList], () => {
+ editorRef.value?.setEditorAutoCompletionContext(
+ databaseList.value,
+ tableList.value
+ );
+ });
+
const updateEditorHeight = () => {
const contentHeight =
editorRef.value?.editorInstance?.getContentHeight() as number;