Repository navigation
fix: correct bracket highlighting for multiline input MONGOSH-3699 - #26
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
What I would suggest is to use the JIRA reproduction as a test too, so we ensure that the expected use case is fixed. |
kmruiz
reviewed
Nov 23, 2026
…ests with a real _refreshLine() test using Node’s multiline state, and added the MONGOSH-3699 expression through the actual input path.
…ests with a real _refreshLine() test using Node’s multiline state, and added the MONGOSH-3699 expression through the actual input path.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
addaleax
reviewed
Nov 24, 2026
addaleax
left a comment
Contributor
There was a problem hiding this comment.
The logic here is quite hard to follow, but looks correct – some comments would help.
That being said, does this actually resolve the ticket? The bug that this is referencing also happens without multiline inputs.
… share the existing colorization and bracket-marking logic for those chunks, and strengthened. Added doc
Contributor
Author
kmruiz
reviewed
Nov 24, 2026
kmruiz
reviewed
Nov 24, 2026
LuciaHarcekova
force-pushed
the
fix/multiline-bracket-highlighting
branch
from
November 24, 2026 16:21
bb59145 to
f1fa460
Compare
The method was defined as $_writeToOutputChunk, so every call site hit "this._writeToOutputChunk is not a function" and any line refresh threw.
kmruiz
approved these changes
Nov 25, 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.



Summary
Testing
npm test— 10 passingnpm run lint— passingRefs mongodb-js/mongosh#2926