fix(editor): ignore SQL Server transaction BEGIN in folding

This commit is contained in:
Melody Ruch authored and GitHub committed 2026-08-19 15:15:20 +08:00
1 parent f937ab9c6d
commit f4f894d979
3 files changed
+288

No files matched your search

@@ -115,6 +115,7 @@ import { trimmedSelectionLayer } from "@/lib/editor/codemirrorTrimmedSelectionLa
import { currentStatementFrameLayer } from "@/lib/editor/codemirrorCurrentStatementFrameLayer";
import { selectionMatchOccurrences } from "@/lib/editor/codemirrorSelectionMatches";
import { createInsertValueHintsExtension, requestInsertValueHintsRefresh } from "@/lib/editor/codemirrorInsertValueHints";
import { sqlBlockFoldService } from "@/lib/editor/codemirrorSqlBlockFolding";
import { focusEditorView } from "@/lib/editor/queryEditorFocus";
import { createDbxCodeMirrorSqlDialect, type CodeMirrorSqlDialectName } from "@/lib/editor/codemirrorSqlDialect";
import { sqlSemanticTableNameSpansForSyntaxTree } from "@/lib/editor/codemirrorSqlSemanticHighlight";
@@ -4915,6 +4916,7 @@ onMounted(async () => {
return span;
},
}),
sqlBlockFoldService,
drawSelection(),
trimmedSelectionLayer(),
selectionMatchOccurrences(),