From 97ce6669fa995bafb202a55af856b38fad79f272 Mon Sep 17 00:00:00 2001 From: Peng Lyu Date: Thu, 18 Jul 2019 15:38:44 -0700 Subject: [PATCH] toggle reaction should work. --- src/vs/workbench/api/common/extHostComments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/common/extHostComments.ts b/src/vs/workbench/api/common/extHostComments.ts index bc39e462d0a..b71643ba369 100644 --- a/src/vs/workbench/api/common/extHostComments.ts +++ b/src/vs/workbench/api/common/extHostComments.ts @@ -190,7 +190,7 @@ export class ExtHostComments implements ExtHostCommentsShape, IDisposable { $toggleReaction(commentControllerHandle: number, threadHandle: number, uri: UriComponents, comment: modes.Comment, reaction: modes.CommentReaction): Promise { const commentController = this._commentControllers.get(commentControllerHandle); - if (!commentController || commentController.reactionHandler) { + if (!commentController || !commentController.reactionHandler) { return Promise.resolve(undefined); }