提交 92187cf4 编写于 作者: R Rachel Macfarlane

Add null check in setComments

上级 0c6e472c
......@@ -499,7 +499,12 @@ export class ReviewController implements IEditorContribution {
}
}
private setComments(commentInfos: modes.CommentInfo[]): void {
if (!this.editor) {
return;
}
this._commentInfos = commentInfos;
let lineDecorationsWidth: number = this.editor.getConfiguration().layoutInfo.decorationsWidth;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册