We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7803ee1 commit 5f65f9eCopy full SHA for 5f65f9e
packages/cli-repl/src/mongosh-repl.ts
@@ -516,7 +516,17 @@ class MongoshNodeRepl implements EvaluationListener {
516
// the multiline input are replaced at this point.
517
const newHistoryEntry = makeMultilineJSIntoSingleLine(ev.input);
518
if (newHistoryEntry.length > 0) {
519
- originalHistory.unshift(newHistoryEntry);
+ 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);
530
}
531
history.splice(0, history.length, ...originalHistory);
532
originalHistory = null;
0 commit comments