From 92fc4bbc159211d0042ba810e99d2975e6f1d148 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 22 Aug 2023 13:24:50 -0400 Subject: [PATCH] Adds logging for repository watchers --- src/git/models/repository.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/git/models/repository.ts b/src/git/models/repository.ts index 399bc4d..46e502c 100644 --- a/src/git/models/repository.ts +++ b/src/git/models/repository.ts @@ -271,7 +271,10 @@ export class Repository implements Disposable { }; } + @debug({ singleLine: true }) private async setupRepoWatchersCore() { + const scope = getLogScope(); + const disposables: Disposable[] = []; disposables.push( @@ -291,6 +294,8 @@ export class Repository implements Disposable { ); function watch(this: Repository, uri: Uri, pattern: string) { + Logger.debug(scope, `watching '${uri.toString(true)}' for repository changes`); + const watcher = workspace.createFileSystemWatcher(new RelativePattern(uri, pattern)); disposables.push(