remove unused exports (#165411)

task part of #164933
This commit is contained in:
Megan Rogge 2022-11-03 15:46:34 -04:00 committed by GitHub
parent 3d2bd905cd
commit eeb5ea617a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ export interface IExtHostTask extends ExtHostTaskShape {
terminateTask(execution: vscode.TaskExecution): Promise<void>;
}
export namespace TaskDefinitionDTO {
namespace TaskDefinitionDTO {
export function from(value: vscode.TaskDefinition): tasks.ITaskDefinitionDTO | undefined {
if (value === undefined || value === null) {
return undefined;
@ -59,7 +59,7 @@ export namespace TaskDefinitionDTO {
}
}
export namespace TaskPresentationOptionsDTO {
namespace TaskPresentationOptionsDTO {
export function from(value: vscode.TaskPresentationOptions): tasks.ITaskPresentationOptionsDTO | undefined {
if (value === undefined || value === null) {
return undefined;
@ -74,7 +74,7 @@ export namespace TaskPresentationOptionsDTO {
}
}
export namespace ProcessExecutionOptionsDTO {
namespace ProcessExecutionOptionsDTO {
export function from(value: vscode.ProcessExecutionOptions): tasks.IProcessExecutionOptionsDTO | undefined {
if (value === undefined || value === null) {
return undefined;
@ -89,7 +89,7 @@ export namespace ProcessExecutionOptionsDTO {
}
}
export namespace ProcessExecutionDTO {
namespace ProcessExecutionDTO {
export function is(value: tasks.IShellExecutionDTO | tasks.IProcessExecutionDTO | tasks.ICustomExecutionDTO | undefined): value is tasks.IProcessExecutionDTO {
if (value) {
const candidate = value as tasks.IProcessExecutionDTO;
@ -119,7 +119,7 @@ export namespace ProcessExecutionDTO {
}
}
export namespace ShellExecutionOptionsDTO {
namespace ShellExecutionOptionsDTO {
export function from(value: vscode.ShellExecutionOptions): tasks.IShellExecutionOptionsDTO | undefined {
if (value === undefined || value === null) {
return undefined;
@ -134,7 +134,7 @@ export namespace ShellExecutionOptionsDTO {
}
}
export namespace ShellExecutionDTO {
namespace ShellExecutionDTO {
export function is(value: tasks.IShellExecutionDTO | tasks.IProcessExecutionDTO | tasks.ICustomExecutionDTO | undefined): value is tasks.IShellExecutionDTO {
if (value) {
const candidate = value as tasks.IShellExecutionDTO;
@ -212,7 +212,7 @@ export namespace TaskHandleDTO {
};
}
}
export namespace TaskGroupDTO {
namespace TaskGroupDTO {
export function from(value: vscode.TaskGroup): tasks.ITaskGroupDTO | undefined {
if (value === undefined || value === null) {
return undefined;
@ -338,7 +338,7 @@ export namespace TaskDTO {
}
}
export namespace TaskFilterDTO {
namespace TaskFilterDTO {
export function from(value: vscode.TaskFilter | undefined): tasks.ITaskFilterDTO | undefined {
return value;
}
@ -374,15 +374,6 @@ class TaskExecutionImpl implements vscode.TaskExecution {
}
}
export namespace TaskExecutionDTO {
export function from(value: vscode.TaskExecution): tasks.ITaskExecutionDTO {
return {
id: (value as TaskExecutionImpl)._id,
task: undefined
};
}
}
export interface HandlerData {
type: string;
provider: vscode.TaskProvider;