Skip to content

Commit da39149

Browse files
committed
Adds warning icon to contributors notice
1 parent 91ace9a commit da39149

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/nodes/contributorsNode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
1+
import { ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
2+
import type { CoreColors } from '../../constants.colors';
23
import type { GitUri } from '../../git/gitUri';
34
import type { GitContributor } from '../../git/models/contributor';
45
import type { Repository } from '../../git/models/repository';
@@ -101,6 +102,7 @@ export class ContributorsNode extends CacheableChildrenViewNode<
101102
stats ? 'Showing incomplete contributors and statistics' : 'Showing incomplete contributors',
102103
result.cancelled.reason === 'timedout' ? `timed out after ${timeout / 1000}s` : 'cancelled',
103104
'Click to retry and wait longer for contributors',
105+
new ThemeIcon('warning', new ThemeColor('list.warningForeground' satisfies CoreColors)),
104106
) as unknown as ContributorNode,
105107
);
106108
}

0 commit comments

Comments
 (0)