toggle reaction should work.

This commit is contained in:
Peng Lyu
2019-07-18 15:38:44 -07:00
parent f1bad37012
commit 97ce6669fa

View File

@@ -190,7 +190,7 @@ export class ExtHostComments implements ExtHostCommentsShape, IDisposable {
$toggleReaction(commentControllerHandle: number, threadHandle: number, uri: UriComponents, comment: modes.Comment, reaction: modes.CommentReaction): Promise<void> {
const commentController = this._commentControllers.get(commentControllerHandle);
if (!commentController || commentController.reactionHandler) {
if (!commentController || !commentController.reactionHandler) {
return Promise.resolve(undefined);
}