Skip to content

Commit cebc1f3

Browse files
authored
Fix icon + color for closed PRs in notifications view (#6822)
1 parent ca0056a commit cebc1f3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/notifications/notificationsManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export class NotificationsManager extends Disposable implements vscode.TreeDataP
8484
if (notification.subject.type === NotificationSubjectType.PullRequest && model instanceof PullRequestModel) {
8585
item.iconPath = model.isOpen
8686
? new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.open'))
87-
: new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.merged'));
87+
: (model.isMerged
88+
? new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.merged'))
89+
: new vscode.ThemeIcon('git-pull-request-closed', new vscode.ThemeColor('pullRequests.closed')));
8890
}
8991
item.description = `${notification.owner}/${notification.name}`;
9092
item.contextValue = notification.subject.type;

0 commit comments

Comments
 (0)