提交 ba1b0979 编写于 作者: I isidor

debug output: only increase counter if same severity

上级 5d9c64d2
......@@ -819,7 +819,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 && strings.endsWith(previousOutput.value, '\n') && previousOutput.value === output && output.trim()) {
if (previousOutput instanceof OutputElement && strings.endsWith(previousOutput.value, '\n') && severity === previousOutput.severity && previousOutput.value === output && output.trim()) {
// 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.
先完成此消息的编辑!
想要评论请 注册