Pārlūkot izejas kodu

Adds logging for repository watchers

main
Eric Amodio pirms 1 gada
vecāks
revīzija
92fc4bbc15
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      src/git/models/repository.ts

+ 5
- 0
src/git/models/repository.ts Parādīt failu

@ -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(

Notiek ielāde…
Atcelt
Saglabāt