From 09ab15fb0f92f36694ffdc274d7be57be0ed68c9 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 11 Jan 2025 10:53:58 +0000 Subject: [PATCH] Only sync eligible files --- plugin/src/sync-operations/syncer.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/src/sync-operations/syncer.ts b/plugin/src/sync-operations/syncer.ts index f5f48832..e23e6920 100644 --- a/plugin/src/sync-operations/syncer.ts +++ b/plugin/src/sync-operations/syncer.ts @@ -640,6 +640,12 @@ export class Syncer { ); return; } + if (!this.operations.isFileEligibleForSync(relativePath)) { + Logger.getInstance().info( + `File ${relativePath} is not eligible for syncing` + ); + return; + } Logger.getInstance().debug(`Syncing ${relativePath}`); await waitForDocumentLock(relativePath);