mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Merge pull request #119114 from microsoft/tyriar/118804
Fix type ahead issue in relaunched terminals
This commit is contained in:
commit
19ac5d4a5c
|
@ -1167,7 +1167,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
||||||
|
|
||||||
this._processManager.relaunch(this._shellLaunchConfig, this._cols, this._rows, this._accessibilityService.isScreenReaderOptimized(), reset);
|
this._processManager.relaunch(this._shellLaunchConfig, this._cols, this._rows, this._accessibilityService.isScreenReaderOptimized(), reset);
|
||||||
|
|
||||||
this._xtermTypeAhead?.reset(this._processManager);
|
this._xtermTypeAhead?.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@debounce(1000)
|
@debounce(1000)
|
||||||
|
|
|
@ -1330,10 +1330,8 @@ export class TypeAheadAddon extends Disposable implements ITerminalAddon {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
public reset(processManager: ITerminalProcessManager) {
|
public reset() {
|
||||||
this.lastRow = undefined;
|
this.lastRow = undefined;
|
||||||
this.processManager = processManager;
|
|
||||||
this._register(this.processManager.onBeforeProcessData(e => this.onBeforeProcessData(e)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private deferClearingPredictions() {
|
private deferClearingPredictions() {
|
||||||
|
|
Loading…
Reference in a new issue