Skip to content

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

fix: revert claude change (#17279)

ecmadao9f762fc3a4b4
diff --git a/frontend/src/utils/performance.ts b/frontend/src/utils/performance.ts
deleted file mode 100644
index 31be356529..0000000000
--- a/frontend/src/utils/performance.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Performance utilities for SQL Editor optimizations
- */
-import { debounce } from "lodash-es";
-
-/**
- * Optimized content change handler for Monaco Editor
- */
-export const createOptimizedContentHandler = (
- onContentChange: (content: string) => void,
- onImmediate?: (content: string) => void
-) => {
- const debouncedHandler = debounce(onContentChange, 150);
-
- return (content: string) => {
- // Call immediate handler for UI responsiveness if provided
- if (onImmediate) {
- onImmediate(content);
- }
-
- // Debounce the heavy operations
- debouncedHandler(content);
- };
-};
diff --git a/frontend/src/views/sql-editor/EditorPanel/StandardPanel/SQLEditor.vue b/frontend/src/views/sql-editor/EditorPanel/StandardPanel/SQLEditor.vue
index fbe32afd73..cfab799f21 100644
--- a/frontend/src/views/sql-editor/EditorPanel/StandardPanel/SQLEditor.vue
+++ b/frontend/src/views/sql-editor/EditorPanel/StandardPanel/SQLEditor.vue
@@ -67,7 +67,6 @@ import {
useInstanceV1EditorLanguage,
instanceV1AllowsExplain,
} from "@/utils";
-import { createOptimizedContentHandler } from "@/utils/performance";
import { useSQLEditorContext } from "../../context";
import UploadFileButton from "./UploadFileButton.vue";
import { activeSQLEditorRef } from "./state";
@@ -117,34 +116,22 @@ const filename = computed(() => {
return `${name}.${ext}`;
});
-// Optimized content handler using performance utilities
-const handleUpdateStatement = createOptimizedContentHandler(
- // Heavy operation (debounced)
- (value: string) => {
- const tab = currentTab.value;
- if (!tab || value === tab.statement) {
- return;
- }
- tabStore.updateCurrentTab({
- statement: value,
- status: "DIRTY",
- });
- },
- // Immediate operation for UI responsiveness
- (value: string) => {
- // When we are switching between tabs, the MonacoEditor emits a 'change'
- // event, but we shouldn't update the current tab;
- if (isSwitchingTab.value) {
- return;
- }
- const tab = currentTab.value;
- if (!tab || value === tab.statement) {
- return;
- }
- // Directly update the reactive tab for immediate UI feedback
- tab.statement = value;
+const handleUpdateStatement = (value: string) => {
+ // When we are switching between tabs, the MonacoEditor emits a 'change'
+ // event, but we shouldn't update the current tab;
+ if (isSwitchingTab.value) {
+ return;
}
-);
+ const tab = currentTab.value;
+ if (!tab || value === tab.statement) {
+ return;
+ }
+ // Directly update the reactive tab for immediate UI feedback
+ tabStore.updateCurrentTab({
+ statement: value,
+ status: "DIRTY",
+ });
+};
const handleUpdateSelectedStatement = (value: string) => {
tabStore.updateCurrentTab({