diff --git a/comment-sample/src/typings/vscode.d.ts b/comment-sample/src/typings/vscode.d.ts new file mode 100644 index 00000000..e809e20d --- /dev/null +++ b/comment-sample/src/typings/vscode.d.ts @@ -0,0 +1,38 @@ +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; + } +} \ No newline at end of file