Merge pull request #2857 from cdr/terminal-missing-func
Implement missing terminal method
This commit is contained in:
commit
69a3e7f651
@ -606,6 +606,10 @@ class Terminal {
|
|||||||
return this.process.input(data);
|
return this.process.input(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public acknowledgeDataEvent(charCount: number): void {
|
||||||
|
return this.process.acknowledgeDataEvent(charCount);
|
||||||
|
}
|
||||||
|
|
||||||
public resize(cols: number, rows: number): void {
|
public resize(cols: number, rows: number): void {
|
||||||
this.cols = cols;
|
this.cols = cols;
|
||||||
this.rows = rows;
|
this.rows = rows;
|
||||||
@ -658,6 +662,7 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
|
|||||||
case '$createTerminalProcess': return this.createTerminalProcess(context.remoteAuthority, args);
|
case '$createTerminalProcess': return this.createTerminalProcess(context.remoteAuthority, args);
|
||||||
case '$startTerminalProcess': return this.startTerminalProcess(args);
|
case '$startTerminalProcess': return this.startTerminalProcess(args);
|
||||||
case '$sendInputToTerminalProcess': return this.sendInputToTerminalProcess(args);
|
case '$sendInputToTerminalProcess': return this.sendInputToTerminalProcess(args);
|
||||||
|
case '$sendCharCountToTerminalProcess': return this.sendCharCountToTerminalProcess(args);
|
||||||
case '$shutdownTerminalProcess': return this.shutdownTerminalProcess(args);
|
case '$shutdownTerminalProcess': return this.shutdownTerminalProcess(args);
|
||||||
case '$resizeTerminalProcess': return this.resizeTerminalProcess(args);
|
case '$resizeTerminalProcess': return this.resizeTerminalProcess(args);
|
||||||
case '$getTerminalInitialCwd': return this.getTerminalInitialCwd(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);
|
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> {
|
private async shutdownTerminalProcess(args: terminal.IShutdownTerminalProcessArguments): Promise<void> {
|
||||||
return this.getTerminal(args.id).shutdown(args.immediate);
|
return this.getTerminal(args.id).shutdown(args.immediate);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user