Skip to content

Commit

Permalink
fix #120680
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Oct 19, 2021
1 parent f94ce8b commit aea6270
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
private _error!: HTMLElement;
private _contextKeyService: IContextKeyService;
private _threadIsEmpty: IContextKey<boolean>;
private _commentThreadContextValue: IContextKey<string>;
private _commentThreadContextValue: IContextKey<string | undefined>;
private _commentFormActions!: CommentFormActions;
private _scopedInstatiationService: IInstantiationService;
private _focusedComment: number | undefined = undefined;
Expand Down Expand Up @@ -177,7 +177,8 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget

this._threadIsEmpty = CommentContextKeys.commentThreadIsEmpty.bindTo(this._contextKeyService);
this._threadIsEmpty.set(!_commentThread.comments || !_commentThread.comments.length);
this._commentThreadContextValue = this._contextKeyService.createKey('commentThread', _commentThread.contextValue);
this._commentThreadContextValue = this._contextKeyService.createKey<string | undefined>('commentThread', undefined);
this._commentThreadContextValue.set(_commentThread.contextValue);

const commentControllerKey = this._contextKeyService.createKey<string | undefined>('commentController', undefined);
const controller = this.commentService.getCommentController(this._owner);
Expand Down

0 comments on commit aea6270

Please sign in to comment.