Skip to content

Commit 32c1f0b

Browse files
committed
fixed all news commit stuff
1 parent 4f96be4 commit 32c1f0b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/repository.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class Repository {
267267
this.disposables.push(this.conflicts);
268268

269269
const svnConfig = workspace.getConfiguration("svn");
270-
270+
271271
const updateFreqNew = svnConfig.get<number>("svn.newCommits.update");
272272
if (updateFreqNew) {
273273
const interval = setInterval(() => {
@@ -287,10 +287,10 @@ export class Repository {
287287

288288
@debounce(1000)
289289
async updateNewCommits() {
290-
const newCommits = await this.repository.countNewCommits();
291-
if (newCommits !== this.newCommits) {
292-
this.newCommits = newCommits;
293-
this._onDidChangeNewCommits.fire();
290+
const newCommits = await this.repository.countNewCommit();
291+
if (newCommits !== this.newCommit) {
292+
this.newCommit = newCommits;
293+
this._onDidChangeNewCommit.fire();
294294
}
295295
}
296296

@@ -544,14 +544,14 @@ export class Repository {
544544
async switchBranch(name: string) {
545545
await this.run(Operation.SwitchBranch, async () => {
546546
await this.repository.switchBranch(name);
547-
this.updateNewsCommits();
547+
this.updateNewCommits();
548548
});
549549
}
550550

551551
async updateRevision(): Promise<string> {
552552
return await this.run<string>(Operation.Update, async () => {
553553
const response = await this.repository.update();
554-
this.updateNewsCommits();
554+
this.updateNewCommits();
555555
return response;
556556
});
557557
}

src/statusBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class SvnStatusBar {
4747
const icon = isIdle ? "sync" : "sync~spin";
4848
const title = !isIdle
4949
? "Running"
50-
: this.repository.newsCommit > 0
50+
: this.repository.newCommit > 0
5151
? `${this.repository.newCommit} new commits`
5252
: "Updated";
5353

0 commit comments

Comments
 (0)