Skip to content

Commit 2c9202a

Browse files
committed
Register new listeners
1 parent 4786944 commit 2c9202a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export class PromptInputModel extends Disposable implements IPromptInputModel {
9494
this._register(onCommandStart(e => this._handleCommandStart(e as { marker: IMarker })));
9595
this._register(onCommandExecuted(() => this._handleCommandExecuted()));
9696

97-
this.onDidStartInput(() => this._logCombinedStringIfTrace('PromptInputModel#onDidStartInput'));
98-
this.onDidChangeInput(() => this._logCombinedStringIfTrace('PromptInputModel#onDidChangeInput'));
99-
this.onDidFinishInput(() => this._logCombinedStringIfTrace('PromptInputModel#onDidFinishInput'));
100-
this.onDidInterrupt(() => this._logCombinedStringIfTrace('PromptInputModel#onDidInterrupt'));
97+
this._register(this.onDidStartInput(() => this._logCombinedStringIfTrace('PromptInputModel#onDidStartInput')));
98+
this._register(this.onDidChangeInput(() => this._logCombinedStringIfTrace('PromptInputModel#onDidChangeInput')));
99+
this._register(this.onDidFinishInput(() => this._logCombinedStringIfTrace('PromptInputModel#onDidFinishInput')));
100+
this._register(this.onDidInterrupt(() => this._logCombinedStringIfTrace('PromptInputModel#onDidInterrupt')));
101101
}
102102

103103
private _logCombinedStringIfTrace(message: string) {

0 commit comments

Comments
 (0)