Skip to content

Commit 7088965

Browse files
committed
Enforce maximum adjust marker poll count
Fixes microsoft#210780
1 parent f28c508 commit 7088965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ class UnixPtyHeuristics extends Disposable {
555555
const enum AdjustCommandStartMarkerConstants {
556556
MaxCheckLineCount = 10,
557557
Interval = 20,
558-
MaximumPollCount = 50,
558+
MaximumPollCount = 10,
559559
}
560560

561561
/**
@@ -736,7 +736,7 @@ class WindowsPtyHeuristics extends Disposable {
736736
}
737737
if (scannedLineCount < AdjustCommandStartMarkerConstants.MaxCheckLineCount) {
738738
this._tryAdjustCommandStartMarkerScannedLineCount = scannedLineCount;
739-
if (this._tryAdjustCommandStartMarkerPollCount < AdjustCommandStartMarkerConstants.MaximumPollCount) {
739+
if (++this._tryAdjustCommandStartMarkerPollCount < AdjustCommandStartMarkerConstants.MaximumPollCount) {
740740
this._tryAdjustCommandStartMarkerScheduler?.schedule();
741741
} else {
742742
this._flushPendingHandleCommandStartTask();

0 commit comments

Comments
 (0)