feat(search): add global file content search in QuickOpen
This commit is contained in:
1 parent
5278594ed2
commit
04c6e67bbd
31 files changed
+1509
-16
No files matched your search
@@ -242,6 +242,12 @@ const emit = defineEmits<ContentAreaSurfaceEmits>();
|
||||
const { t, locale } = useI18n();
|
||||
const queryStore = useQueryStore();
|
||||
const connectionStore = useConnectionStore();
|
||||
/** Clear a consumed editor reveal request so a later normal tab re-visit doesn't re-jump. */
|
||||
function clearEditorRevealRequest(tab: { editorRevealRequest?: unknown }): void {
|
||||
if (tab.editorRevealRequest !== undefined) {
|
||||
tab.editorRevealRequest = undefined;
|
||||
}
|
||||
}
|
||||
provideTabUiState(() => {
|
||||
const tab = props.activeTab;
|
||||
const mode = tab.mode;
|
||||
@@ -1501,6 +1507,7 @@ defineExpose({
|
||||
:statement-execution-markers="activeStatementExecutionMarkers"
|
||||
:initial-viewport="activeTab.editorViewport"
|
||||
:initial-selection="activeTab.editorSelection"
|
||||
:reveal-request="activeTab.editorRevealRequest"
|
||||
:force-word-wrap="activeTab.forceWordWrap"
|
||||
enable-explain-shortcut
|
||||
:can-explain="!activeTab.isExecuting && !activeTab.isExplaining && !!executableSql.trim()"
|
||||
@@ -1512,6 +1519,7 @@ defineExpose({
|
||||
@viewport-change="(viewport, tabId) => emit('editorViewportChange', tabId ?? activeTab.id, viewport)"
|
||||
@selection-state-change="emit('editorSelectionStateChange', activeTab.id, $event)"
|
||||
@editor-state-flushed="emit('editorStateFlushed', activeTab.id)"
|
||||
@editor-reveal-consumed="clearEditorRevealRequest(activeTab)"
|
||||
@format-error="emit('formatError', activeTab.id)"
|
||||
@execute="emit('execute', activeTab.id, $event)"
|
||||
@execute-in-new-result-tab="emit('executeInNewResultTab', activeTab.id, $event)"
|
||||
|
||||
Reference in new issue
Block a user