Skip to content

Commit 909e55f

Browse files
authored
Git - add tracing messages to help with troubleshooting (microsoft#184506)
1 parent 9c28bf7 commit 909e55f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/git/src/repository.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,14 +2269,17 @@ export class Repository implements Disposable {
22692269
const autorefresh = config.get<boolean>('autorefresh');
22702270

22712271
if (!autorefresh) {
2272+
this.logger.trace('Skip running git status because autorefresh setting is disabled.');
22722273
return;
22732274
}
22742275

22752276
if (this.isRepositoryHuge) {
2277+
this.logger.trace('Skip running git status because repository is huge.');
22762278
return;
22772279
}
22782280

22792281
if (!this.operations.isIdle()) {
2282+
this.logger.trace('Skip running git status because an operation is running.');
22802283
return;
22812284
}
22822285

0 commit comments

Comments
 (0)