Expose Terminal Service in API
Will need in sail.
This commit is contained in:
parent
ab8f8a0a22
commit
6ef1628acb
3
packages/ide-api/api.d.ts
vendored
3
packages/ide-api/api.d.ts
vendored
@ -1,5 +1,7 @@
|
|||||||
// tslint:disable no-any
|
// tslint:disable no-any
|
||||||
|
|
||||||
|
import { ITerminalService } from "vs/workbench/contrib/terminal/common/terminal";
|
||||||
|
|
||||||
export interface EvalHelper { }
|
export interface EvalHelper { }
|
||||||
interface ActiveEvalEmitter {
|
interface ActiveEvalEmitter {
|
||||||
removeAllListeners(event?: string): void;
|
removeAllListeners(event?: string): void;
|
||||||
@ -149,6 +151,7 @@ declare namespace ide {
|
|||||||
readonly storageService: IStorageService;
|
readonly storageService: IStorageService;
|
||||||
readonly menuRegistry: IMenuRegistry;
|
readonly menuRegistry: IMenuRegistry;
|
||||||
readonly commandRegistry: ICommandRegistry;
|
readonly commandRegistry: ICommandRegistry;
|
||||||
|
readonly terminalService: ITerminalService;
|
||||||
|
|
||||||
onFileCreate(cb: (path: string) => void): void;
|
onFileCreate(cb: (path: string) => void): void;
|
||||||
onFileMove(cb: (path: string, target: 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
|
// tslint:disable-next-line:no-any
|
||||||
statusbarService: getService<IStatusbarService>(IStatusbarService) as any,
|
statusbarService: getService<IStatusbarService>(IStatusbarService) as any,
|
||||||
notificationService: getService<INotificationService>(INotificationService),
|
notificationService: getService<INotificationService>(INotificationService),
|
||||||
|
terminalService: getService<ITerminalService>(ITerminalService),
|
||||||
storageService: {
|
storageService: {
|
||||||
save: (): Promise<void> => {
|
save: (): Promise<void> => {
|
||||||
// tslint:disable-next-line:no-any
|
// tslint:disable-next-line:no-any
|
||||||
|
Reference in New Issue
Block a user