Skip to content

Commit 5f65f9e

Browse files
committed
WIP
1 parent 7803ee1 commit 5f65f9e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/cli-repl/src/mongosh-repl.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,17 @@ class MongoshNodeRepl implements EvaluationListener {
516516
// the multiline input are replaced at this point.
517517
const newHistoryEntry = makeMultilineJSIntoSingleLine(ev.input);
518518
if (newHistoryEntry.length > 0) {
519-
originalHistory.unshift(newHistoryEntry);
519+
const newLines = [newHistoryEntry];
520+
/*
521+
changeHistory(
522+
newLines,
523+
this.redactHistory === 'remove-redact'
524+
? 'redact-sensitive-data'
525+
: 'keep-sensitive-data'
526+
);
527+
*/
528+
529+
originalHistory.unshift(...newLines);
520530
}
521531
history.splice(0, history.length, ...originalHistory);
522532
originalHistory = null;

0 commit comments

Comments
 (0)