Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ export const CodeEditor = ({
editorRef.current = editor;
if (height === 'sizeToFit') {
setHeightToFitContent();
editor.onDidContentSizeChange(() => {
setHeightToFitContent();
});
Comment on lines 388 to +391

@thatblindgeye thatblindgeye Jun 29, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need both calls to setHeightToFitContent? Assuming the first is for an initial render and second is more the dynamic change when typing in the code editor, but just wanna confirm

}
};

Expand Down
Loading