Implement missing terminal method

This commit is contained in:
Asher 2021-03-10 13:15:14 -06:00
parent 5a1f62a8fb
commit 01c3d1f53d
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 9 additions and 0 deletions

View File

@ -606,6 +606,10 @@ class Terminal {
return this.process.input(data);
}
public acknowledgeDataEvent(charCount: number): void {
return this.process.acknowledgeDataEvent(charCount);
}
public resize(cols: number, rows: number): void {
this.cols = cols;
this.rows = rows;
@ -658,6 +662,7 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
case '$createTerminalProcess': return this.createTerminalProcess(context.remoteAuthority, args);
case '$startTerminalProcess': return this.startTerminalProcess(args);
case '$sendInputToTerminalProcess': return this.sendInputToTerminalProcess(args);
case '$sendCharCountToTerminalProcess': return this.sendCharCountToTerminalProcess(args);
case '$shutdownTerminalProcess': return this.shutdownTerminalProcess(args);
case '$resizeTerminalProcess': return this.resizeTerminalProcess(args);
case '$getTerminalInitialCwd': return this.getTerminalInitialCwd(args);
@ -827,6 +832,10 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
return this.getTerminal(args.id).input(args.data);
}
private async sendCharCountToTerminalProcess(args: terminal.ISendCharCountToTerminalProcessArguments): Promise<void> {
return this.getTerminal(args.id).acknowledgeDataEvent(args.charCount);
}
private async shutdownTerminalProcess(args: terminal.IShutdownTerminalProcessArguments): Promise<void> {
return this.getTerminal(args.id).shutdown(args.immediate);
}