Skip to content

Commit

Permalink
Rename input to handleInput
Browse files Browse the repository at this point in the history
Part of #70978
  • Loading branch information
Tyriar committed Jul 8, 2019
1 parent b37e5db commit 8ec3a1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/vs/vscode.proposed.d.ts
Expand Up @@ -1373,12 +1373,12 @@ declare module 'vscode' {
* const writeEmitter = new vscode.EventEmitter<string>();
* const virtualProcess: TerminalVirtualProcess = {
* onDidWrite: writeEmitter.event,
* input: data => writeEmitter.fire(data === '\r' ? '\r\n' : data)
* handleInput: data => writeEmitter.fire(data === '\r' ? '\r\n' : data)
* };
* vscode.window.createTerminal({ name: 'Local echo', virtualProcess });
* ```
*/
input?(data: string): void;
handleInput?(data: string): void;

/**
* Implement to handle when the number of rows and columns that fit into the terminal panel
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/api/node/extHostTerminalService.ts
Expand Up @@ -756,8 +756,8 @@ class ExtHostVirtualProcess implements ITerminalChildProcess {
}

input(data: string): void {
if (this._virtualProcess.input) {
this._virtualProcess.input(data);
if (this._virtualProcess.handleInput) {
this._virtualProcess.handleInput(data);
}
}

Expand Down

0 comments on commit 8ec3a1b

Please sign in to comment.