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

@ -31,9 +31,9 @@
"dev": true
},
"@types/vscode": {
"version": "1.33.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.33.0.tgz",
"integrity": "sha512-JSmGiValbrcG5g20jjCfKakLiuWyrcjVezj+SEAEZ4klXQktE5EtowuGlkLVqbkiBK4iY5wy/4yW8OjecuHnjQ==",
"version": "1.37.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.37.0.tgz",
"integrity": "sha512-PRfeuqYuzk3vjf+puzxltIUWC+AhEGYpFX29/37w30DQSQnpf5AgMVf7GDBAdmTbWTBou+EMFz/Ne6XCM/KxzQ==",
"dev": true
},
"ansi-styles": {

View File

@ -153,6 +153,6 @@
"@types/node": "^6.0.40",
"tslint": "^5.16.0",
"typescript": "^3.5.1",
"@types/vscode": "^1.32.0"
"@types/vscode": "^1.35.0"
}
}

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>;
}
}