fix(editor): wrap generated SQL templates
This commit is contained in:
1 parent
84beec5136
commit
68c22e878b
5 files changed
+55
-2
No files matched your search
@@ -1060,6 +1060,7 @@ defineExpose({ focusSearch, refreshData, refreshQueryEditorCompletionCache, hand
|
||||
:statement-execution-markers="activeStatementExecutionMarkers"
|
||||
:initial-viewport="activeTab.editorViewport"
|
||||
:initial-selection="activeTab.editorSelection"
|
||||
:force-word-wrap="activeTab.forceWordWrap"
|
||||
@update:model-value="emit('editorUpdate', activeTab.id, $event)"
|
||||
@selection-change="emit('editorSelectionChange', $event)"
|
||||
@send-selection-to-ai="emit('sendSelectionToAi', $event)"
|
||||
|
||||
@@ -1529,7 +1529,7 @@ async function loadTemplateContext(allowView = false) {
|
||||
}
|
||||
|
||||
function openSqlTemplateTab(connectionId: string, database: string, schema: string | undefined, catalog: string | undefined, sql: string, title?: string) {
|
||||
const tabId = queryStore.createTab(connectionId, database, title, "query", schema, undefined, catalog);
|
||||
const tabId = queryStore.createTab(connectionId, database, title, "query", schema, undefined, catalog, { forceWordWrap: true });
|
||||
queryStore.updateSql(tabId, sql);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user