10000 Update notebook comment view in response to mutations (#219927) · githubnext/vscode@5b8edf2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b8edf2

Browse files
authored
Update notebook comment view in response to mutations (microsoft#219927)
Update notebook comment view in response to mutations. Fixes Rendered notebook cell comments are not updated when the underlying data changes via the extension APIs microsoft#214248 This short circuiting makes it so that the comment is not updated. Not having this return early is consistent with the corresponding function in commentThreadZoneWidget.ts.
1 parent 02dfd65 commit 5b8edf2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ export class CellComments extends CellContentPart {
110110
this.currentElement.commentHeight = 0;
111111
return;
112112
}
113-
if (this._commentThreadWidget.value.commentThread === info.thread) {
114-
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.value.getDimensions().height);
115-
return;
116-
}
117113

118114
await this._commentThreadWidget.value.updateCommentThread(info.thread);
119115
this.currentElement.commentHeight = this._calculateCommentThreadHeight(this._commentThreadWidget.value.getDimensions().height);

0 commit comments

Comments
 (0)
0