提交 94e05411 编写于 作者: I isidor

Don't group debug console output when it is single character

fixes #17314
上级 67f4ef01
......@@ -863,7 +863,7 @@ export class Model implements debug.IModel {
public appendToRepl(output: string | debug.IExpression, severity: severity): void {
const previousOutput = this.replElements.length && (this.replElements[this.replElements.length - 1] as OutputElement);
if (previousOutput instanceof OutputElement && severity === previousOutput.severity && previousOutput.value === output && output.trim()) {
if (previousOutput instanceof OutputElement && severity === previousOutput.severity && previousOutput.value === output && output.trim() && output.length > 1) {
// we got the same output (but not an empty string when trimmed) so we just increment the counter
previousOutput.counter++;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册