Skip to content

Commit

Permalink
Add param and return type to sendText
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 18, 2016
1 parent 2c95aed commit d3dd3c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/vs/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2979,10 +2979,12 @@ declare namespace vscode {
/**
* Send text to the terminal.
*
* @param text The text to send to the terminal.
* @param addNewLine Whether to add a new line to the text being sent, this is normally
* required to run a command in the terminal. This defaults to `true`.
* required to run a command in the terminal. The character(s) added are \n or \r\n
* depending on the platform. This defaults to `true`.
*/
sendText(text: string, addNewLine?: boolean);
sendText(text: string, addNewLine?: boolean): void;

/**
* Reveal this channel in the UI.
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/node/extHostTerminalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ExtHostTerminal implements vscode.Terminal {
this._proxy = proxy;
}

public sendText(text: string, addNewLine: boolean = true) {
public sendText(text: string, addNewLine: boolean = true): void {
this._proxy.$sendText(this._id, text, addNewLine);
}

Expand Down

0 comments on commit d3dd3c6

Please sign in to comment.