feat(sqlserver): add activity trace

This commit is contained in:
zipg authored and GitHub committed 2026-08-13 11:49:54 +08:00
1 parent e5a3917f7d
commit 982778128e
24 files changed
+2108 -10

No files matched your search

+5 -5
View File
@@ -33,6 +33,7 @@ import { useNavigationTargets } from "@/composables/useNavigationTargets";
import { useDataGridActions } from "@/composables/useDataGridActions";
import { useTauriEvents } from "@/composables/useTauriEvents";
import { useCloseActionPrompt, type AppCloseAction, type AppCloseRequestOptions } from "@/composables/useCloseActionPrompt";
import { disposeAllSqlServerActivityTraces } from "@/lib/sqlserver/sqlServerActivityTraceRuntime";
import { useVisibilityChange } from "@/composables/useVisibilityChange";
import { useExternalSqlFileChanges } from "@/composables/useExternalSqlFileChanges";
import { useWebDavAutoUpload } from "@/composables/useWebDavAutoUpload";
@@ -947,7 +948,7 @@ function cancelPendingAppClose() {
pendingSaveShouldCloseTab.value = true;
}
function finishPendingAppClose(action: AppCloseAction) {
async function finishPendingAppClose(action: AppCloseAction) {
if (pendingCloseActionChoice.value) {
pendingCloseActionChoice.value = false;
showCloseActionPrompt.value = true;
@@ -955,10 +956,9 @@ function finishPendingAppClose(action: AppCloseAction) {
}
pendingAppCloseAction.value = null;
pendingSaveShouldCloseTab.value = true;
void queryStore
.flushPendingPersist()
.catch(() => {})
.finally(() => performCloseAction(action));
if (action === "quit") await disposeAllSqlServerActivityTraces().catch(() => undefined);
await queryStore.flushPendingPersist().catch(() => undefined);
await performCloseAction(action);
}
function continuePendingAppCloseAfterSave() {