@@ -44,7 +44,7 @@ export interface IExtHostTask extends ExtHostTaskShape {
44
44
terminateTask ( execution : vscode . TaskExecution ) : Promise < void > ;
45
45
}
46
46
47
- export namespace TaskDefinitionDTO {
47
+ namespace TaskDefinitionDTO {
48
48
export function from ( value : vscode . TaskDefinition ) : tasks . ITaskDefinitionDTO | undefined {
49
49
if ( value === undefined || value === null ) {
50
50
return undefined ;
@@ -59,7 +59,7 @@ export namespace TaskDefinitionDTO {
59
59
}
60
60
}
61
61
62
- export namespace TaskPresentationOptionsDTO {
62
+ namespace TaskPresentationOptionsDTO {
63
63
export function from ( value : vscode . TaskPresentationOptions ) : tasks . ITaskPresentationOptionsDTO | undefined {
64
64
if ( value === undefined || value === null ) {
65
65
return undefined ;
@@ -74,7 +74,7 @@ export namespace TaskPresentationOptionsDTO {
74
74
}
75
75
}
76
76
77
- export namespace ProcessExecutionOptionsDTO {
77
+ namespace ProcessExecutionOptionsDTO {
78
78
export function from ( value : vscode . ProcessExecutionOptions ) : tasks . IProcessExecutionOptionsDTO | undefined {
79
79
if ( value === undefined || value === null ) {
80
80
return undefined ;
@@ -89,7 +89,7 @@ export namespace ProcessExecutionOptionsDTO {
89
89
}
90
90
}
91
91
92
- export namespace ProcessExecutionDTO {
92
+ namespace ProcessExecutionDTO {
93
93
export function is ( value : tasks . IShellExecutionDTO | tasks . IProcessExecutionDTO | tasks . ICustomExecutionDTO | undefined ) : value is tasks . IProcessExecutionDTO {
94
94
if ( value ) {
95
95
const candidate = value as tasks . IProcessExecutionDTO ;
@@ -119,7 +119,7 @@ export namespace ProcessExecutionDTO {
119
119
}
120
120
}
121
121
122
- export namespace ShellExecutionOptionsDTO {
122
+ namespace ShellExecutionOptionsDTO {
123
123
export function from ( value : vscode . ShellExecutionOptions ) : tasks . IShellExecutionOptionsDTO | undefined {
124
124
if ( value === undefined || value === null ) {
125
125
return undefined ;
@@ -134,7 +134,7 @@ export namespace ShellExecutionOptionsDTO {
134
134
}
135
135
}
136
136
137
- export namespace ShellExecutionDTO {
137
+ namespace ShellExecutionDTO {
138
138
export function is ( value : tasks . IShellExecutionDTO | tasks . IProcessExecutionDTO | tasks . ICustomExecutionDTO | undefined ) : value is tasks . IShellExecutionDTO {
139
139
if ( value ) {
140
140
const candidate = value as tasks . IShellExecutionDTO ;
@@ -212,7 +212,7 @@ export namespace TaskHandleDTO {
212
212
} ;
213
213
}
214
214
}
215
- export namespace TaskGroupDTO {
215
+ namespace TaskGroupDTO {
216
216
export function from ( value : vscode . TaskGroup ) : tasks . ITaskGroupDTO | undefined {
217
217
if ( value === undefined || value === null ) {
218
218
return undefined ;
@@ -338,7 +338,7 @@ export namespace TaskDTO {
338
338
}
339
339
}
340
340
341
- export namespace TaskFilterDTO {
341
+ namespace TaskFilterDTO {
342
342
export function from ( value : vscode . TaskFilter | undefined ) : tasks . ITaskFilterDTO | undefined {
343
343
return value ;
344
344
}
@@ -374,15 +374,6 @@ class TaskExecutionImpl implements vscode.TaskExecution {
374
374
}
375
375
}
376
376
377
- export namespace TaskExecutionDTO {
378
- export function from ( value : vscode . TaskExecution ) : tasks . ITaskExecutionDTO {
379
- return {
380
- id : ( value as TaskExecutionImpl ) . _id ,
381
- task : undefined
382
- } ;
383
- }
384
- }
385
-
386
377
export interface HandlerData {
387
378
type : string ;
388
379
provider : vscode . TaskProvider ;
0 commit comments