瀏覽代碼

Adds logging for repository watchers

main
Eric Amodio 1 年之前
父節點
當前提交
92fc4bbc15
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      src/git/models/repository.ts

+ 5
- 0
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(

Loading…
取消
儲存