diff --git a/src/helper/actions.ts b/src/helper/actions.ts index 9c1edfa..b4a5d06 100644 --- a/src/helper/actions.ts +++ b/src/helper/actions.ts @@ -110,12 +110,16 @@ export const checkIsRemoteSynced = async () => { export const checkStatusWithDebounce = debounce(async (perform = true) => { if (perform) { if (isEnabledInThisWindow()) { - const waitFor = [checkStatus()]; - if (gitConfiguration.hasRemote) { - // TODO this should be reworked - waitFor.push(checkIsRemoteSynced()); - } - await Promise.all(waitFor); + logDebug("checkStatusWithDebounce = START"); + await loadingEffect(async () => { + const waitFor = [checkStatus()]; + if (gitConfiguration.hasRemote) { + // TODO this should be reworked + waitFor.push(checkIsRemoteSynced()); + } + await Promise.all(waitFor); + }); + logDebug("checkStatusWithDebounce = END"); } } else { logDebug("clear checkStatusWithDebounce"); diff --git a/src/main.tsx b/src/main.tsx index e86af3b..f705a7d 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -56,6 +56,7 @@ if (isDevelopment) { // noChange void // changed commit push if (logseq.settings?.autoPush) { + logInfo("autoPush is enabled, saving..."); operations.sync(); } }