From 58992dc09ff1f30c90be4a7f4f08cb7446a0ed77 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Wed, 2 Oct 2024 10:56:59 +0200 Subject: [PATCH] chore: log only files processed by the watcher --- src/watcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/watcher.ts b/src/watcher.ts index f617063..c68777a 100644 --- a/src/watcher.ts +++ b/src/watcher.ts @@ -38,20 +38,20 @@ export class ExtensionWatcher extends vscode.Disposable { }) watcher.onDidChange(async (file) => { - log.verbose?.('[VSCODE] File changed:', relative(api.workspaceFolder.uri.fsPath, file.fsPath)) const filepath = normalize(file.fsPath) if (await this.shouldIgnoreFile(filepath)) { return } + log.verbose?.('[VSCODE] File changed:', relative(api.workspaceFolder.uri.fsPath, file.fsPath)) api.onFileChanged(filepath) }) watcher.onDidCreate(async (file) => { - log.verbose?.('[VSCODE] File created:', relative(api.workspaceFolder.uri.fsPath, file.fsPath)) const filepath = normalize(file.fsPath) if (await this.shouldIgnoreFile(filepath)) { return } + log.verbose?.('[VSCODE] File created:', relative(api.workspaceFolder.uri.fsPath, file.fsPath)) api.onFileCreated(filepath) }) } -- 2.51.2