Skip to content

Commit eeb5ea6

Browse files
authored
remove unused exports (microsoft#165411)
task part of microsoft#164933
1 parent 3d2bd90 commit eeb5ea6

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

src/vs/workbench/api/common/extHostTask.ts

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface IExtHostTask extends ExtHostTaskShape {
4444
terminateTask(execution: vscode.TaskExecution): Promise<void>;
4545
}
4646

47-
export namespace TaskDefinitionDTO {
47+
namespace TaskDefinitionDTO {
4848
export function from(value: vscode.TaskDefinition): tasks.ITaskDefinitionDTO | undefined {
4949
if (value === undefined || value === null) {
5050
return undefined;
@@ -59,7 +59,7 @@ export namespace TaskDefinitionDTO {
5959
}
6060
}
6161

62-
export namespace TaskPresentationOptionsDTO {
62+
namespace TaskPresentationOptionsDTO {
6363
export function from(value: vscode.TaskPresentationOptions): tasks.ITaskPresentationOptionsDTO | undefined {
6464
if (value === undefined || value === null) {
6565
return undefined;
@@ -74,7 +74,7 @@ export namespace TaskPresentationOptionsDTO {
7474
}
7575
}
7676

77-
export namespace ProcessExecutionOptionsDTO {
77+
namespace ProcessExecutionOptionsDTO {
7878
export function from(value: vscode.ProcessExecutionOptions): tasks.IProcessExecutionOptionsDTO | undefined {
7979
if (value === undefined || value === null) {
8080
return undefined;
@@ -89,7 +89,7 @@ export namespace ProcessExecutionOptionsDTO {
8989
}
9090
}
9191

92-
export namespace ProcessExecutionDTO {
92+
namespace ProcessExecutionDTO {
9393
export function is(value: tasks.IShellExecutionDTO | tasks.IProcessExecutionDTO | tasks.ICustomExecutionDTO | undefined): value is tasks.IProcessExecutionDTO {
9494
if (value) {
9595
const candidate = value as tasks.IProcessExecutionDTO;
@@ -119,7 +119,7 @@ export namespace ProcessExecutionDTO {
119119
}
120120
}
121121

122-
export namespace ShellExecutionOptionsDTO {
122+
namespace ShellExecutionOptionsDTO {
123123
export function from(value: vscode.ShellExecutionOptions): tasks.IShellExecutionOptionsDTO | undefined {
124124
if (value === undefined || value === null) {
125125
return undefined;
@@ -134,7 +134,7 @@ export namespace ShellExecutionOptionsDTO {
134134
}
135135
}
136136

137-
export namespace ShellExecutionDTO {
137+
namespace ShellExecutionDTO {
138138
export function is(value: tasks.IShellExecutionDTO | tasks.IProcessExecutionDTO | tasks.ICustomExecutionDTO | undefined): value is tasks.IShellExecutionDTO {
139139
if (value) {
140140
const candidate = value as tasks.IShellExecutionDTO;
@@ -212,7 +212,7 @@ export namespace TaskHandleDTO {
212212
};
213213
}
214214
}
215-
export namespace TaskGroupDTO {
215+
namespace TaskGroupDTO {
216216
export function from(value: vscode.TaskGroup): tasks.ITaskGroupDTO | undefined {
217217
if (value === undefined || value === null) {
218218
return undefined;
@@ -338,7 +338,7 @@ export namespace TaskDTO {
338338
}
339339
}
340340

341-
export namespace TaskFilterDTO {
341+
namespace TaskFilterDTO {
342342
export function from(value: vscode.TaskFilter | undefined): tasks.ITaskFilterDTO | undefined {
343343
return value;
344344
}
@@ -374,15 +374,6 @@ class TaskExecutionImpl implements vscode.TaskExecution {
374374
}
375375
}
376376

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-
386377
export interface HandlerData {
387378
type: string;
388379
provider: vscode.TaskProvider;

0 commit comments

Comments
 (0)