mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fix #209
This commit is contained in:
6
comment-sample/package-lock.json
generated
6
comment-sample/package-lock.json
generated
@ -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": {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
38
comment-sample/src/typings/vscode.d.ts
vendored
38
comment-sample/src/typings/vscode.d.ts
vendored
@ -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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user