@@ -983,7 +983,7 @@ export function toTask(taskDto: TaskDto): theia.Task {
983983 throw new Error ( 'Task should be provided for converting' ) ;
984984 }
985985
986- const { type, taskType , label, source, scope, problemMatcher, detail, command, args, options, group, presentation, runOptions, ...properties } = taskDto ;
986+ const { type, executionType , label, source, scope, problemMatcher, detail, command, args, options, group, presentation, runOptions, ...properties } = taskDto ;
987987 const result = { } as theia . Task ;
988988 result . name = label ;
989989 result . source = source ;
@@ -1008,16 +1008,16 @@ export function toTask(taskDto: TaskDto): theia.Task {
10081008
10091009 result . definition = taskDefinition ;
10101010
1011- if ( taskType === 'process' ) {
1011+ if ( executionType === 'process' ) {
10121012 result . execution = getProcessExecution ( taskDto ) ;
10131013 }
10141014
10151015 const execution = { command, args, options } ;
1016- if ( taskType === 'shell' || types . ShellExecution . is ( execution ) ) {
1016+ if ( executionType === 'shell' || types . ShellExecution . is ( execution ) ) {
10171017 result . execution = getShellExecution ( taskDto ) ;
10181018 }
10191019
1020- if ( taskType === 'customExecution' || types . CustomExecution . is ( execution ) ) {
1020+ if ( executionType === 'customExecution' || types . CustomExecution . is ( execution ) ) {
10211021 result . execution = getCustomExecution ( taskDto ) ;
10221022 // if taskType is customExecution, we need to put all the information into taskDefinition,
10231023 // because some parameters may be in taskDefinition.
@@ -1053,7 +1053,7 @@ export function toTask(taskDto: TaskDto): theia.Task {
10531053}
10541054
10551055export function fromProcessExecution ( execution : theia . ProcessExecution , taskDto : TaskDto ) : TaskDto {
1056- taskDto . taskType = 'process' ;
1056+ taskDto . executionType = 'process' ;
10571057 taskDto . command = execution . process ;
10581058 taskDto . args = execution . args ;
10591059
@@ -1065,7 +1065,7 @@ export function fromProcessExecution(execution: theia.ProcessExecution, taskDto:
10651065}
10661066
10671067export function fromShellExecution ( execution : theia . ShellExecution , taskDto : TaskDto ) : TaskDto {
1068- taskDto . taskType = 'shell' ;
1068+ taskDto . executionType = 'shell' ;
10691069 const options = execution . options ;
10701070 if ( options ) {
10711071 taskDto . options = getShellExecutionOptions ( options ) ;
@@ -1087,7 +1087,7 @@ export function fromShellExecution(execution: theia.ShellExecution, taskDto: Tas
10871087}
10881088
10891089export function fromCustomExecution ( execution : types . CustomExecution , taskDto : TaskDto ) : TaskDto {
1090- taskDto . taskType = 'customExecution' ;
1090+ taskDto . executionType = 'customExecution' ;
10911091 const callback = execution . callback ;
10921092 if ( callback ) {
10931093 taskDto . callback = callback ;
0 commit comments