This commit is contained in:
Simon Knott 2025-02-19 16:53:42 +01:00
parent 9cf01a0db7
commit 66347fb5cf
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -63,11 +63,10 @@ export function useConsoleTabModel(model: modelUtil.MultiTraceModel | undefined,
&& entry.isError === lastEntry.isError && entry.isError === lastEntry.isError
&& entry.isWarning === lastEntry.isWarning && entry.isWarning === lastEntry.isWarning
&& entry.timestamp - lastEntry.timestamp < 1000; && entry.timestamp - lastEntry.timestamp < 1000;
if (isSameAsLast) { if (isSameAsLast)
lastEntry.repeat++; lastEntry.repeat++;
} else { else
entries.push({ ...entry, repeat: 1 }); entries.push({ ...entry, repeat: 1 });
}
} }
for (const event of model.events) { for (const event of model.events) {
if (event.type === 'console') { if (event.type === 'console') {