Skip to content

Commit 2ca206a

Browse files
authored
Make sure the debug hover doesn't break if the tree throws (microsoft#182820)
1 parent 1c95491 commit 2ca206a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/debug/browser/debugHover.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,14 @@ export class DebugHoverWidget implements IContentWidget {
316316
// Do this in beforeRender once the content widget is no longer display=none so that its elements' sizes will be measured correctly.
317317
this.isUpdatingTree = true;
318318
this.tree.setInput(expression).then(() => {
319-
this.isUpdatingTree = false;
320319
dom.scheduleAtNextAnimationFrame(() => {
321320
// Wait for scrollWidth to update after a frame
322321
this.layoutTree();
323322
this.editor.layoutContentWidget(this);
324323
this.complexValueContainer.style.visibility = '';
325324
});
325+
}).finally(() => {
326+
this.isUpdatingTree = false;
326327
});
327328
}
328329

0 commit comments

Comments
 (0)