@@ -895,45 +895,12 @@ declare module 'vscode' {
895895 //#endregion
896896
897897 //#region CustomExecution
898- /**
899- * Class used to execute an extension callback as a task.
900- */
901- export class CustomExecution {
902- /**
903- * Constructs a CustomExecution task object. The callback will be executed the task is run, at which point the
904- * extension should return the Pseudoterminal it will "run in". The task should wait to do further execution until
905- * [Pseudoterminal.open](#Pseudoterminal.open) is called. Task cancellation should be handled using
906- * [Pseudoterminal.close](#Pseudoterminal.close). When the task is complete fire
907- * [Pseudoterminal.onDidClose](#Pseudoterminal.onDidClose).
908- * @param process The [Pseudoterminal](#Pseudoterminal) to be used by the task to display output.
909- * @param callback The callback that will be called when the task is started by a user.
910- */
911- constructor ( callback : ( ) => Thenable < Pseudoterminal > ) ;
912- }
898+
913899
914900 /**
915901 * A task to execute
916902 */
917903 export class Task2 extends Task {
918- /**
919- * Creates a new task.
920- *
921- * @param definition The task definition as defined in the taskDefinitions extension point.
922- * @param scope Specifies the task's scope. It is either a global or a workspace task or a task for a specific workspace folder.
923- * @param name The task's name. Is presented in the user interface.
924- * @param source The task's source (e.g. 'gulp', 'npm', ...). Is presented in the user interface.
925- * @param execution The process or shell execution.
926- * @param problemMatchers the names of problem matchers to use, like '$tsc'
927- * or '$eslint'. Problem matchers can be contributed by an extension using
928- * the `problemMatchers` extension point.
929- */
930- constructor ( taskDefinition : TaskDefinition , scope : WorkspaceFolder | TaskScope . Global | TaskScope . Workspace , name : string , source : string , execution ?: ProcessExecution | ShellExecution | CustomExecution , problemMatchers ?: string | string [ ] ) ;
931-
932- /**
933- * The task's execution engine
934- */
935- execution2 ?: ProcessExecution | ShellExecution | CustomExecution ;
936-
937904 detail ?: string ;
938905 }
939906
0 commit comments