mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-04-14 04:58:46 +00:00
Fixed:
- No longer detects storage changes which have been caused by Self-hosted LiveSync itself. - Setting sync file will be detected only if it has been configured now. - And its log will be shown only while the verbose log is enabled. - Customisation file enumeration has got less blingy. Fixed and improved: - In-editor-status is now shown in the following areas: - Note editing pane (Source mode and live-preview mode). - New tab pane. - Canvas pane.
This commit is contained in:
@@ -4,6 +4,7 @@ import { Logger } from "./lib/src/logger";
|
||||
import { isPlainText, shouldBeIgnored } from "./lib/src/path";
|
||||
import type { KeyedQueueProcessor } from "./lib/src/processor";
|
||||
import { LOG_LEVEL_NOTICE, type FilePath, type ObsidianLiveSyncSettings } from "./lib/src/types";
|
||||
import { delay } from "./lib/src/utils";
|
||||
import { type FileEventItem, type FileEventType, type FileInfo, type InternalFileInfo } from "./types";
|
||||
|
||||
|
||||
@@ -110,6 +111,8 @@ export class StorageEventManagerObsidian extends StorageEventManager {
|
||||
let cache: null | string | ArrayBuffer;
|
||||
// new file or something changed, cache the changes.
|
||||
if (file instanceof TFile && (type == "CREATE" || type == "CHANGED")) {
|
||||
// Wait for a bit while to let the writer has marked `touched` at the file.
|
||||
await delay(10);
|
||||
if (this.plugin.vaultAccess.recentlyTouched(file)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user