feat(editor): restore SQL pasted from source code

This commit is contained in:
高桥凉介 authored and GitHub committed 2026-09-29 21:51:10 +08:00
1 parent e00af09691
commit 39f388f391
25 files changed
+889 -1

No files matched your search

@@ -38,6 +38,7 @@ export const EDITOR_SETTINGS_DRAFT_KEYS = [
"vimModeEnabled",
"doubleClickStringSelectionMode",
"autoCloseBrackets",
"restoreSqlFromSourcePasteEnabled",
"sqlSemanticDiagnosticsMode",
"confirmDangerousSqlExecution",
"confirmUnsavedSqlClose",
@@ -142,6 +142,7 @@ export const SETTINGS_SEARCH_DEFINITIONS: readonly SettingsSearchDefinition[] =
{ id: "editor-word-wrap", category: "editor", titleKey: "settings.wordWrap", descriptionKey: "settings.wordWrapDescription", targetId: "editor" },
{ id: "editor-vim", category: "editor", titleKey: "settings.vimMode", descriptionKey: "settings.vimModeDescription", targetId: "editor" },
{ id: "editor-brackets", category: "editor", titleKey: "settings.autoCloseBrackets", descriptionKey: "settings.autoCloseBracketsDescription", targetId: "editor" },
{ id: "editor-source-paste-restore", category: "editor", titleKey: "settings.restoreSqlFromSourcePaste", descriptionKey: "settings.restoreSqlFromSourcePasteDescription", targetId: "editor" },
{ id: "editor-double-click-string", category: "editor", titleKey: "settings.doubleClickStringSelectionMode", descriptionKey: "settings.doubleClickStringSelectionModeDescription", targetId: "editor" },
{ id: "editor-completion-spacing", category: "editor", titleKey: "settings.insertSpaceAfterCompletion", descriptionKey: "settings.insertSpaceAfterCompletionDescription", targetId: "editor" },
{ id: "editor-sqlserver-space-completion", category: "editor", titleKey: "settings.sqlServerSpaceConfirmsCompletion", descriptionKey: "settings.sqlServerSpaceConfirmsCompletionDescription", targetId: "editor", visible: sqlServerSpaceCompletionVisible },
@@ -94,6 +94,7 @@ const SETTINGS_TRANSFER_CATEGORY_KEYS: Record<SettingsTransferCategoryId, readon
"vimModeEnabled",
"doubleClickStringSelectionMode",
"autoCloseBrackets",
"restoreSqlFromSourcePasteEnabled",
"sqlSemanticDiagnosticsMode",
"confirmDangerousSqlExecution",
"continueOnErrorOnBatch",