浏览代码

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(

正在加载...
取消
保存