From 6ef1628acb33195caa3cd905e3e8ade29d010982 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 2 May 2019 09:38:43 -0400 Subject: [PATCH] Expose Terminal Service in API Will need in sail. --- packages/ide-api/api.d.ts | 3 +++ packages/vscode/src/client.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/ide-api/api.d.ts b/packages/ide-api/api.d.ts index 8d059e10..c395ac28 100644 --- a/packages/ide-api/api.d.ts +++ b/packages/ide-api/api.d.ts @@ -1,5 +1,7 @@ // tslint:disable no-any +import { ITerminalService } from "vs/workbench/contrib/terminal/common/terminal"; + export interface EvalHelper { } interface ActiveEvalEmitter { removeAllListeners(event?: string): void; @@ -149,6 +151,7 @@ declare namespace ide { readonly storageService: IStorageService; readonly menuRegistry: IMenuRegistry; readonly commandRegistry: ICommandRegistry; + readonly terminalService: ITerminalService; onFileCreate(cb: (path: string) => void): void; onFileMove(cb: (path: string, target: string) => void): void; diff --git a/packages/vscode/src/client.ts b/packages/vscode/src/client.ts index c1a544d5..277f89bb 100644 --- a/packages/vscode/src/client.ts +++ b/packages/vscode/src/client.ts @@ -39,6 +39,7 @@ class VSClient extends IdeClient { // tslint:disable-next-line:no-any statusbarService: getService(IStatusbarService) as any, notificationService: getService(INotificationService), + terminalService: getService(ITerminalService), storageService: { save: (): Promise => { // tslint:disable-next-line:no-any