diff --git a/src/services/wiki/plugin/watchFileSystemAdaptor/WatchFileSystemAdaptor.ts b/src/services/wiki/plugin/watchFileSystemAdaptor/WatchFileSystemAdaptor.ts index 1c01b6fc..7946c783 100644 --- a/src/services/wiki/plugin/watchFileSystemAdaptor/WatchFileSystemAdaptor.ts +++ b/src/services/wiki/plugin/watchFileSystemAdaptor/WatchFileSystemAdaptor.ts @@ -126,8 +126,7 @@ export class WatchFileSystemAdaptor extends FileSystemAdaptor { if (this.workspace) { this.ignoreSymlinks = this.workspace.ignoreSymlinks; } - // Initialize file watching - this.initializeFileWatching(); + await this.initializeFileWatching(); } /** @@ -255,7 +254,7 @@ export class WatchFileSystemAdaptor extends FileSystemAdaptor { /** * Initialize file system watching */ - private initializeFileWatching(): void { + private async initializeFileWatching(): Promise { if (!this.watchPathBase) { return; } @@ -277,7 +276,7 @@ export class WatchFileSystemAdaptor extends FileSystemAdaptor { ]; // Setup nsfw watcher - void this.setupNsfwWatcher(); + await this.setupNsfwWatcher(); } /**