未验证 提交 f36235e0 编写于 作者: A Anmol Sethi 提交者: GitHub

Merge pull request #633 from cdr/show-terminal-api

expose terminal service in IDE API
// 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;
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册