This commit is contained in:
Peng Lyu
2019-08-21 16:17:01 -07:00
parent e5598998fe
commit 7b4d139f4b
3 changed files with 4 additions and 42 deletions

View File

@ -1,38 +0,0 @@
declare module 'vscode' {
/**
* Reactions of a [comment](#Comment)
*/
export interface CommentReaction {
/**
* The human-readable label for the reaction
*/
readonly label: string;
/**
* Icon for the reaction shown in UI.
*/
readonly iconPath: string | Uri;
/**
* The number of users who have reacted to this reaction
*/
readonly count: number;
/**
* Whether the [author](CommentAuthorInformation) of the comment has reacted to this reaction
*/
readonly authorHasReacted: boolean;
}
export interface Comment {
reactions?: CommentReaction[];
}
export interface CommentController {
/**
*
*/
reactionHandler?: (comment: Comment, reaction: CommentReaction) => Promise<void>;
}
}