File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/vs/platform/terminal/common/capabilities Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
114
114
setConfidentCommandLine ( value : string ) : void {
115
115
if ( this . _value !== value ) {
116
116
this . _value = value ;
117
+ this . _cursorIndex = - 1 ;
118
+ this . _ghostTextIndex = - 1 ;
117
119
this . _onDidChangeInput . fire ( this . _createStateObject ( ) ) ;
118
120
}
119
121
}
@@ -165,7 +167,6 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
165
167
this . _onDidInterrupt . fire ( event ) ;
166
168
}
167
169
168
-
169
170
this . _state = PromptInputState . Execute ;
170
171
this . _onDidFinishInput . fire ( event ) ;
171
172
this . _onDidChangeInput . fire ( event ) ;
Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ class UnixPtyHeuristics extends Disposable {
555
555
const enum AdjustCommandStartMarkerConstants {
556
556
MaxCheckLineCount = 10 ,
557
557
Interval = 20 ,
558
- MaximumPollCount = 50 ,
558
+ MaximumPollCount = 10 ,
559
559
}
560
560
561
561
/**
@@ -736,7 +736,7 @@ class WindowsPtyHeuristics extends Disposable {
736
736
}
737
737
if ( scannedLineCount < AdjustCommandStartMarkerConstants . MaxCheckLineCount ) {
738
738
this . _tryAdjustCommandStartMarkerScannedLineCount = scannedLineCount ;
739
- if ( this . _tryAdjustCommandStartMarkerPollCount < AdjustCommandStartMarkerConstants . MaximumPollCount ) {
739
+ if ( ++ this . _tryAdjustCommandStartMarkerPollCount < AdjustCommandStartMarkerConstants . MaximumPollCount ) {
740
740
this . _tryAdjustCommandStartMarkerScheduler ?. schedule ( ) ;
741
741
} else {
742
742
this . _flushPendingHandleCommandStartTask ( ) ;
You can’t perform that action at this time.
0 commit comments