瀏覽代碼

Adds logging for finding a new repository

Removes start logging from isTracked
main
Eric Amodio 6 年之前
父節點
當前提交
638c9f565e
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      src/gitService.ts

+ 1
- 2
src/gitService.ts 查看文件

@ -1487,6 +1487,7 @@ export class GitService implements Disposable {
folder = { uri: Uri.file(rp), name: parts[parts.length - 1], index: this._repositoryTree.count() };
}
Logger.log(`Repository found in '${rp}'`);
repo = new Repository(folder, rp, false, this.onAnyRepositoryChanged.bind(this), this._suspended);
this._repositoryTree.set(rp, repo);
@ -1713,8 +1714,6 @@ export class GitService implements Disposable {
cacheKey += `:${ref}`;
}
Logger.log(`isTracked('${fileName}', '${repoPath}'${ref !== undefined ? `, '${ref}'` : ''})`);
let tracked = this._trackedCache.get(cacheKey);
try {
if (tracked !== undefined) {

Loading…
取消
儲存