@@ -52,20 +52,18 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
52
52
private readonly _xterm : Terminal ,
53
53
onCommandStart : Event < ITerminalCommand > ,
54
54
onCommandExecuted : Event < ITerminalCommand > ,
55
- private readonly _logService : ILogService
55
+ @ ILogService private readonly _logService : ILogService
56
56
) {
57
57
super ( ) ;
58
58
59
59
this . _register ( this . _xterm . onData ( e => this . _handleInput ( e ) ) ) ;
60
60
this . _register ( this . _xterm . onCursorMove ( ( ) => this . _sync ( ) ) ) ;
61
- // TODO: Listen to the xterm textarea focus event?
62
61
63
62
this . _register ( onCommandStart ( e => this . _handleCommandStart ( e as { marker : IMarker } ) ) ) ;
64
63
this . _register ( onCommandExecuted ( ( ) => this . _handleCommandExecuted ( ) ) ) ;
65
64
}
66
65
67
66
setContinuationPrompt ( value : string ) : void {
68
- console . log ( 'setContinuationPrompt' , value ) ;
69
67
this . _continuationPrompt = value ;
70
68
}
71
69
@@ -77,7 +75,6 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
77
75
this . _state = PromptInputState . Input ;
78
76
this . _commandStartMarker = command . marker ;
79
77
this . _commandStartX = this . _xterm . buffer . active . cursorX ;
80
- console . log ( 'commandStart' , command . marker . line , this . _commandStartX ) ;
81
78
this . _onDidStartInput . fire ( ) ;
82
79
}
83
80
@@ -91,7 +88,6 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
91
88
}
92
89
93
90
private _handleInput ( data : string ) {
94
- this . _logService . trace ( `PromptInputModel#_handleInput data=${ data } ` ) ;
95
91
this . _sync ( ) ;
96
92
}
97
93
0 commit comments