Skip to content

Conversation

@tamuratak
Copy link
Contributor

Fire onDidChangeHeight after code block editor render completes. Fix #265031

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies the code block rendering logic to fire a height change event after the asynchronous render() operation completes, ensuring the UI properly updates when rendering finishes.

Key Changes

  • Modified renderCodeBlock method to chain a .then() callback on the editorInfo.render() promise to fire _onDidChangeHeight event after rendering completes

@bpasero
Copy link
Member

bpasero commented Nov 3, 2025

I wonder if this is the fix for #274428 @mjbvz ?

@mjbvz mjbvz added this to the November 2025 milestone Nov 4, 2025
@justschen justschen merged commit 04dfadd into microsoft:main Nov 11, 2025
32 of 34 checks passed
@tamuratak tamuratak deleted the fix_codeblock_rendering_d branch November 21, 2025 23:54
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The user message is trimmed in the Chat panel

4 participants