Skip to content

Commit be672da

Browse files
committed
Add debug messages
1 parent e2c99fb commit be672da

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

extensions/git/src/repository.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,6 +1943,7 @@ export class Repository implements Disposable {
19431943
sort = 'alphabetically';
19441944
}
19451945

1946+
console.log('query start');
19461947
const [HEAD, refs, remotes, submodules, status, rebaseCommit, mergeInProgress, commitTemplate] =
19471948
await Promise.all([
19481949
this.repository.getHEADBranch(),
@@ -1953,6 +1954,8 @@ export class Repository implements Disposable {
19531954
this.getRebaseCommit(),
19541955
this.isMergeInProgress(),
19551956
this.getInputTemplate()]);
1957+
console.log('query end');
1958+
console.log('status: ', JSON.stringify(status));
19561959

19571960
this._HEAD = HEAD;
19581961
this._refs = refs!;

extensions/git/src/test/smoke.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ suite('git smoke test', function () {
7272
const appjs = await open('app.js');
7373
await type(appjs, ' world');
7474
await appjs.save();
75+
console.log('status start');
7576
await repository.status();
77+
console.log('status end');
78+
console.log(JSON.stringify(repository.state));
7679
assert.strictEqual(repository.state.workingTreeChanges.length, 1);
7780
repository.state.workingTreeChanges.some(r => r.uri.path === appjs.uri.path && r.status === Status.MODIFIED);
7881

0 commit comments

Comments
 (0)