diff options
Diffstat (limited to 'src/vs/workbench/contrib/terminal/browser/terminal.ts')
-rw-r--r-- | src/vs/workbench/contrib/terminal/browser/terminal.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vs/workbench/contrib/terminal/browser/terminal.ts b/src/vs/workbench/contrib/terminal/browser/terminal.ts index aa125ac3d78..45871689f60 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminal.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminal.ts @@ -133,6 +133,7 @@ export interface ITerminalService extends ITerminalInstanceHost { readonly connectionState: TerminalConnectionState; readonly defaultLocation: TerminalLocation; + initializeTerminals(): Promise<void>; onDidChangeActiveGroup: Event<ITerminalGroup | undefined>; onDidDisposeGroup: Event<ITerminalGroup>; @@ -163,6 +164,11 @@ export interface ITerminalService extends ITerminalInstanceHost { getInstanceFromId(terminalId: number): ITerminalInstance | undefined; getInstanceFromIndex(terminalIndex: number): ITerminalInstance; + /** + * An owner of terminals might be created after reconnection has occurred, + * so store them to be requested/adopted later + */ + getReconnectedTerminals(reconnectionOwner: string): ITerminalInstance[] | undefined; getActiveOrCreateInstance(): Promise<ITerminalInstance>; moveToEditor(source: ITerminalInstance): void; @@ -439,7 +445,7 @@ export interface ITerminalInstance { readonly fixedRows?: number; readonly icon?: TerminalIcon; readonly color?: string; - + readonly reconnectionOwner?: string; readonly processName: string; readonly sequence?: string; readonly staticTitle?: string; |