Skip to content

Commit f0106ce

Browse files
authored
Merge pull request #633 from cdr/show-terminal-api
expose terminal service in IDE API
2 parents 49f3749 + e2b0e5a commit f0106ce

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/ide-api/api.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// tslint:disable no-any
22

3+
import { ITerminalService } from "vs/workbench/contrib/terminal/common/terminal";
4+
35
export interface EvalHelper { }
46
interface ActiveEvalEmitter {
57
removeAllListeners(event?: string): void;
@@ -149,6 +151,7 @@ declare namespace ide {
149151
readonly storageService: IStorageService;
150152
readonly menuRegistry: IMenuRegistry;
151153
readonly commandRegistry: ICommandRegistry;
154+
readonly terminalService: ITerminalService;
152155

153156
onFileCreate(cb: (path: string) => void): void;
154157
onFileMove(cb: (path: string, target: string) => void): void;

packages/vscode/src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class VSClient extends IdeClient {
3939
// tslint:disable-next-line:no-any
4040
statusbarService: getService<IStatusbarService>(IStatusbarService) as any,
4141
notificationService: getService<INotificationService>(INotificationService),
42+
terminalService: getService<ITerminalService>(ITerminalService),
4243
storageService: {
4344
save: (): Promise<void> => {
4445
// tslint:disable-next-line:no-any

0 commit comments

Comments
 (0)