提交 cce4650a 编写于 作者: D Daniel Imms

sendText terminal API progress

上级 d0f83470
......@@ -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
});
}
}
......@@ -73,7 +73,7 @@ export interface ITerminalService {
runSelectedText(): TPromise<any>;
scrollDown(): TPromise<any>;
scrollUp(): TPromise<any>;
show(focus: boolean, terminalId?: number): TPromise<any>;
show(focus: boolean, terminalId?: number): TPromise<ITerminalPanel>;
setActiveTerminal(index: number): TPromise<any>;
toggle(): TPromise<any>;
......@@ -82,3 +82,7 @@ export interface ITerminalService {
initConfigHelper(panelContainer: Builder): void;
killTerminalProcess(terminalProcess: ITerminalProcess): void;
}
export interface ITerminalPanel {
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册