diff --git a/extensions/eclipse-che-theia-terminal/src/browser/terminal-widget/remote-terminal-widget.ts b/extensions/eclipse-che-theia-terminal/src/browser/terminal-widget/remote-terminal-widget.ts index fff87af12..7123069b5 100644 --- a/extensions/eclipse-che-theia-terminal/src/browser/terminal-widget/remote-terminal-widget.ts +++ b/extensions/eclipse-che-theia-terminal/src/browser/terminal-widget/remote-terminal-widget.ts @@ -10,7 +10,7 @@ import { injectable, inject, postConstruct } from 'inversify'; import { TerminalWidgetImpl } from '@theia/terminal/lib/browser/terminal-widget-impl'; -import { IBaseTerminalServer } from '@theia/terminal/lib/common/base-terminal-protocol'; +import { IBaseTerminalServer, TerminalProcessInfo } from '@theia/terminal/lib/common/base-terminal-protocol'; import { TerminalProxyCreatorProvider } from '../server-definition/terminal-proxy-creator'; import { ATTACH_TERMINAL_SEGMENT, RemoteTerminalServerProxy, RemoteTerminalWatcher } from '../server-definition/remote-terminal-protocol'; import { RemoteWebSocketConnectionProvider } from '../server-definition/remote-connection'; @@ -199,6 +199,15 @@ export class RemoteTerminalWidget extends TerminalWidgetImpl { })(); } + get processInfo(): Promise { + return (async () => { + if (!IBaseTerminalServer.validateId(this.terminalId)) { + throw new Error('terminal is not started'); + } + return { executable: '/bin/bash', arguments: [] }; + })(); + } + protected async connectSocket(id: number): Promise { if (this.socket) { return Promise.resolve();