Skip to content

Commit d35d386

Browse files
committed
Fixes build issues
1 parent a6e2bcd commit d35d386

File tree

11 files changed

+9
-46
lines changed

11 files changed

+9
-46
lines changed

src/views/nodes/branchesNode.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Repository } from '../../git/models/repository';
55
import { getOpenedWorktreesByBranch } from '../../git/utils/-webview/worktree.utils';
66
import { getLocalBranchUpstreamNames } from '../../git/utils/branch.utils';
77
import { makeHierarchical } from '../../system/array';
8-
import { debug } from '../../system/decorators/log';
98
import { PageableResult } from '../../system/paging';
109
import type { ViewsWithBranchesNode } from '../viewBase';
1110
import { CacheableChildrenViewNode } from './abstract/cacheableChildrenViewNode';
@@ -129,9 +128,4 @@ export class BranchesNode extends CacheableChildrenViewNode<'branches', ViewsWit
129128

130129
return item;
131130
}
132-
133-
@debug()
134-
override refresh(): void {
135-
super.refresh(true);
136-
}
137131
}

src/views/nodes/compareBranchNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ export class CompareBranchNode extends SubscribeableViewNode<
305305
}
306306

307307
@debug()
308-
override refresh(reset?: boolean): void {
309-
super.refresh(reset);
308+
override refresh(reset?: boolean): void | { cancel: boolean } | Promise<void | { cancel: boolean }> {
310309
this.loadCompareWith();
310+
return super.refresh(reset);
311311
}
312312

313313
@log()

src/views/nodes/contributorsNode.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,6 @@ export class ContributorsNode extends CacheableChildrenViewNode<
150150
}
151151
}
152152

153-
@debug()
154-
override refresh(): void {
155-
super.refresh(true);
156-
}
157-
158153
@debug({ args: false })
159154
private async getPresenceMap(contributors: GitContributor[]) {
160155
// Only get presence for the current user, because it is far too slow otherwise

src/views/nodes/reflogNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,11 @@ export class ReflogNode
6868
}
6969

7070
@debug()
71-
override refresh(reset?: boolean): void {
72-
super.refresh(true);
73-
71+
override refresh(reset?: boolean): void | { cancel: boolean } | Promise<void | { cancel: boolean }> {
7472
if (reset) {
7573
this._reflog = undefined;
7674
}
75+
return super.refresh(true);
7776
}
7877

7978
private _reflog: GitReflog | undefined;

src/views/nodes/remotesNode.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
22
import type { GitUri } from '../../git/gitUri';
33
import type { Repository } from '../../git/models/repository';
4-
import { debug } from '../../system/decorators/log';
54
import type { ViewsWithRemotesNode } from '../viewBase';
65
import { CacheableChildrenViewNode } from './abstract/cacheableChildrenViewNode';
76
import type { ViewNode } from './abstract/viewNode';
@@ -51,9 +50,4 @@ export class RemotesNode extends CacheableChildrenViewNode<'remotes', ViewsWithR
5150

5251
return item;
5352
}
54-
55-
@debug()
56-
override refresh(): void {
57-
super.refresh(true);
58-
}
5953
}

src/views/nodes/repositoriesNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class RepositoriesNode extends SubscribeableViewNode<
7171
@debug()
7272
override async refresh(reset: boolean = false): Promise<void> {
7373
const hasChildren = this.children != null;
74-
super.refresh(reset);
74+
await super.refresh(reset);
7575
if (!hasChildren) return;
7676

7777
if (reset) {

src/views/nodes/repositoryNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ export class RepositoryNode extends SubscribeableViewNode<'repository', ViewsWit
330330

331331
@gate()
332332
@debug()
333-
override async refresh(reset: boolean = false): Promise<void> {
334-
super.refresh(reset);
333+
override async refresh(reset?: boolean): Promise<void | { cancel: boolean }> {
334+
await super.refresh(reset);
335335

336336
if (reset) {
337337
this._status = this.repo.git.status().getStatus();

src/views/nodes/stashesNode.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
22
import type { GitUri } from '../../git/gitUri';
33
import type { Repository } from '../../git/models/repository';
4-
import { debug } from '../../system/decorators/log';
54
import { map } from '../../system/iterable';
65
import type { ViewsWithStashesNode } from '../viewBase';
76
import { CacheableChildrenViewNode } from './abstract/cacheableChildrenViewNode';
@@ -49,9 +48,4 @@ export class StashesNode extends CacheableChildrenViewNode<'stashes', ViewsWithS
4948
item.iconPath = new ThemeIcon('gitlens-stashes');
5049
return item;
5150
}
52-
53-
@debug()
54-
override refresh(): void {
55-
super.refresh(true);
56-
}
5751
}

src/views/nodes/tagsNode.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
22
import { GitUri } from '../../git/gitUri';
33
import type { Repository } from '../../git/models/repository';
44
import { makeHierarchical } from '../../system/array';
5-
import { debug } from '../../system/decorators/log';
65
import type { ViewsWithTagsNode } from '../viewBase';
76
import { CacheableChildrenViewNode } from './abstract/cacheableChildrenViewNode';
87
import type { ViewNode } from './abstract/viewNode';
@@ -64,9 +63,4 @@ export class TagsNode extends CacheableChildrenViewNode<'tags', ViewsWithTagsNod
6463
item.iconPath = new ThemeIcon('tag');
6564
return item;
6665
}
67-
68-
@debug()
69-
override refresh(): void {
70-
super.refresh(true);
71-
}
7266
}

src/views/nodes/worktreeNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,12 @@ export class WorktreeNode extends CacheableChildrenViewNode<'worktree', ViewsWit
415415
}
416416

417417
@debug()
418-
override refresh(reset?: boolean): void {
419-
super.refresh(true);
420-
418+
override refresh(reset?: boolean): void | { cancel: boolean } | Promise<void | { cancel: boolean }> {
421419
if (reset) {
422420
this._log = undefined;
423421
this.deleteState();
424422
}
423+
return super.refresh(reset);
425424
}
426425

427426
private async getAssociatedPullRequest(

0 commit comments

Comments
 (0)