Skip to content

fix: draft comments disappear after refresh

Tomas Vik requested to merge 476-do-not-refresh-mr-item into main

This MR fixes a bug when the automatic refresh removed comments in progress.

We introduced code to prevent MR items to be created during a refresh. But then VS Code called getChildren on the MrItemModel and that caused the very thing we tried to prevent: second initialization of the comment controller. This MR prevents exactly that: double-initializing the comments.

Related to #476 (closed)

Merge request reports