@eclipse-che/plugin
Advanced tools
Comparing version 0.0.1-1547221824 to 0.0.1-1547622875
{ | ||
"name": "@eclipse-che/plugin", | ||
"version": "0.0.1-1547221824", | ||
"version": "0.0.1-1547622875", | ||
"description": "Eclipse Che specific Theia plugin API", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -90,2 +90,40 @@ /********************************************************************* | ||
export namespace task { | ||
export function registerTaskRunner(type: string, runner: TaskRunner): Promise<Disposable>; | ||
export function fireTaskExited(id: number): Promise<void>; | ||
} | ||
/** A Task Runner knows how to run a Task of a particular type. */ | ||
export interface TaskRunner { | ||
/** Runs a task based on the given task configuration. */ | ||
run(taskConfig: TaskConfiguration, ctx?: string): Promise<Task>; | ||
} | ||
export interface Task { | ||
/** Terminates the task. */ | ||
kill(): Promise<void>; | ||
/** Returns runtime information about task. */ | ||
getRuntimeInfo(): TaskInfo; | ||
} | ||
/** Runtime information about Task. */ | ||
export interface TaskInfo { | ||
/** internal unique task id */ | ||
readonly taskId: number, | ||
/** terminal id. Defined if task is run as a terminal process */ | ||
readonly terminalId?: number, | ||
/** context that was passed as part of task creation, if any */ | ||
readonly ctx?: string, | ||
/** task config used for launching a task */ | ||
readonly config: TaskConfiguration | ||
} | ||
export interface TaskConfiguration { | ||
readonly type: string; | ||
/** A label that uniquely identifies a task configuration */ | ||
readonly label: string; | ||
/** Additional task type specific properties. */ | ||
readonly [key: string]: string; | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
6527
116