Skip to content

expose terminal service in IDE API #633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/ide-api/api.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions packages/vscode/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class VSClient extends IdeClient {
// tslint:disable-next-line:no-any
statusbarService: getService<IStatusbarService>(IStatusbarService) as any,
notificationService: getService<INotificationService>(INotificationService),
terminalService: getService<ITerminalService>(ITerminalService),
storageService: {
save: (): Promise<void> => {
// tslint:disable-next-line:no-any
Expand Down