Skip to content

Commit

Permalink
Update comment reactor api proposal (#5600)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 authored Jan 10, 2024
1 parent 86999c8 commit a8ecc08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/@types/vscode.proposed.commentReactor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

declare module 'vscode' {
export interface CommentReaction {
readonly reactors?: readonly string[];
readonly reactors?: readonly CommentAuthorInformation[];
}
}
2 changes: 1 addition & 1 deletion src/github/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export function updateCommentReactions(comment: vscode.Comment, reactions: React
authorHasReacted: matchedReaction.viewerHasReacted,
count: matchedReaction.count,
iconPath: reaction.icon || '',
reactors: matchedReaction.reactors
reactors: matchedReaction.reactors.map(reactor => ({ name: reactor }))
};
} else {
newReaction = { label: reaction.label, authorHasReacted: false, count: 0, iconPath: reaction.icon || '' };
Expand Down

0 comments on commit a8ecc08

Please sign in to comment.