Repository navigation
Let cell editors grow to fit their content - #121
Merged
Merged
Conversation
Switch Monaco cell and diff editors to size themselves from rendered content height instead of raw line counts, so wrapped lines, diff view zones, and horizontal scrollbars are handled correctly. Add a configurable `verso.editor.maxLines` setting (default 500), wire it through the VS Code bridge into the Blazor host, document and localize it, and add E2E coverage for normal cells, oversized cells, and compare view sizing. Signed-off-by: Torrey Betts <[email protected]>
Lower the default cell editor height limit to 30 lines, add `verso serve --max-cell-lines`, and surface when a cell is clipped with guidance on how to raise the limit. This also wires the setting through the Blazor and VS Code hosts, keeps diff editors on their own taller limit, and updates docs, localization, and end-to-end coverage. Signed-off-by: Torrey Betts <[email protected]>
SummarySummary
CoverageVerso - 82.2%
Verso.Abstractions - 84.2%
Verso.Ado - 81.4%
Verso.Blazor - 31.4%
Verso.Blazor.Shared - 62.6%
Verso.Cli - 41.4%
Verso.DataFrame - 82.3%
Verso.FSharp - 82%
Verso.Host - 57.4%
Verso.Http - 76.2%
Verso.JavaScript - 59.8%
Verso.PowerShell - 64.7%
Verso.Python - 78.1%
Verso.Sample.Diagram - 80.1%
Verso.Sample.Dice - 82.2%
Verso.Sample.Slides - 58.8%
Verso.Sample.Sparkline - 67.3%
Verso.Testing - 79.4%
|
2 tasks done
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.
Cell editors were sized from their line count and capped at 30 lines with no way to change it, and the compare view did the same at 40. Both now size from Monaco's own measure of the rendered content, which also stops a horizontal scrollbar from hiding a cell's last line. A cell still stops growing at 30 lines by default, but it now says so ("Showing 30 of 60 lines") and shows where to raise the limit: in VS Code a Change limit button opens the new
verso.editor.maxLinessetting, andverso servetakes the new--max-cell-linesoption. 0 removes the limit. The compare view keeps its own limit of 40.Browser tests cover cells under, at and past the limit, a cell at the limit with a long line, the note, the serve option, and the compare view's own limit. The note, the Change limit button and a live change of the setting were also checked in VS Code. Part of #119.