mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
sendText terminal API progress
This commit is contained in:
@@ -149,6 +149,7 @@ export abstract class MainThreadOutputServiceShape {
|
||||
export abstract class MainThreadTerminalServiceShape {
|
||||
$createTerminal(name?: string): TPromise<number> { throw ni(); }
|
||||
$show(terminalId: number, preserveFocus: boolean): void { throw ni(); }
|
||||
$sendText(terminalId: number, text: string, addNewLine: boolean): void { throw ni(); }
|
||||
}
|
||||
|
||||
export interface MyQuickPickItems extends IPickOpenEntry {
|
||||
|
||||
@@ -23,7 +23,7 @@ export class ExtHostTerminal implements vscode.Terminal {
|
||||
}
|
||||
|
||||
public sendText(text: string, addNewLine: boolean = true) {
|
||||
// TODO: Implement
|
||||
this._proxy.$sendText(this._id, text, addNewLine);
|
||||
}
|
||||
|
||||
public show(preserveFocus: boolean): void {
|
||||
|
||||
@@ -26,4 +26,10 @@ export class MainThreadTerminalService extends MainThreadTerminalServiceShape {
|
||||
public $show(terminalId: number, preserveFocus: boolean): void {
|
||||
this._terminalService.show(!preserveFocus, terminalId);
|
||||
}
|
||||
|
||||
public $sendText(terminalId: number, text: string, addNewLine: boolean): void {
|
||||
this._terminalService.show(false, terminalId).then((terminalPanel) => {
|
||||
// TODO: Implement
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user