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) }) }