Enable code folding in the console response panel - #431
Merged
Conversation
The result editor had folding explicitly disabled, so long JSON responses could only be navigated by scrolling. Monaco's JSON folding provider gives us collapsible blocks for free, and the remaining folding defaults (mouseover controls, highlighted folded ranges) already match the request editor's behaviour. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
KShivendu
force-pushed
the
enable-folding-in-response-panel
branch
from
August 4, 2026 15:48
4db68a9 to
742f3e1
Compare
Member
Author
generall
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What
Turns on Monaco's code folding in the response (right-hand) pane of the Console, so long JSON responses can be collapsed block by block the way they can in a code editor.
Folding was explicitly disabled (
folding: false) in the result editor, so the only way to navigate a large response was scrolling which can become very annoying if your collection/cluster/telemetry data is huge.Notes
language="json"already gives Monaco a folding-range provider (the JSON worker is wired up inEditorCommon), so the defaultautostrategy produces bracket-accurate fold ranges.Test plan
points/scrollquery in the Console against a local Qdrant and confirmed the fold arrows appear in the response gutter on hover and collapse/expand nested objects and arrays.prettier --checkandeslintpass on the changed file.🤖 Generated with Claude Code