Skip to content

Commit 8feef7f

Browse files
committed
Read marker severities more efficiently
1 parent f6e8c63 commit 8feef7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/browser/debugTaskRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class DebugTaskRunner {
6464
return TaskRunResult.Failure;
6565
}
6666

67-
const errorCount = taskId ? this.markerService.read().filter(marker => marker.severity === MarkerSeverity.Error).length : 0;
67+
const errorCount = taskId ? this.markerService.read({ severities: MarkerSeverity.Error, take: 2 }).length : 0;
6868
const successExitCode = taskSummary && taskSummary.exitCode === 0;
6969
const failureExitCode = taskSummary && taskSummary.exitCode !== 0;
7070
const onTaskErrors = this.configurationService.getValue<IDebugConfiguration>('debug').onTaskErrors;

0 commit comments

Comments
 (0)