提交 bbfd565b 编写于 作者: J Joao Moreno

Merge remote-tracking branch 'origin/master'

...@@ -337,6 +337,16 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape { ...@@ -337,6 +337,16 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
return terminal; return terminal;
} }
public async attachVirtualProcessToTerminal(id: number, virtualProcess: vscode.TerminalVirtualProcess): Promise<void> {
const terminal = this._getTerminalById(id);
if (!terminal) {
throw new Error(`Cannot resolve terminal with id ${id} for virtual process`);
}
const p = new ExtHostVirtualProcess(virtualProcess);
this._setupExtHostProcessListeners(id, p);
p.startSendingEvents();
}
public createTerminalRenderer(name: string): vscode.TerminalRenderer { public createTerminalRenderer(name: string): vscode.TerminalRenderer {
const terminal = new ExtHostTerminal(this._proxy, name); const terminal = new ExtHostTerminal(this._proxy, name);
terminal._setProcessId(undefined); terminal._setProcessId(undefined);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册