Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused exports #165411

Merged
merged 1 commit into from
Nov 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 8 additions & 17 deletions src/vs/workbench/api/common/extHostTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -338,7 +338,7 @@ export namespace TaskDTO {
}
}

export namespace TaskFilterDTO {
namespace TaskFilterDTO {
export function from(value: vscode.TaskFilter | undefined): tasks.ITaskFilterDTO | undefined {
return value;
}
Expand Down Expand Up @@ -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;
Expand Down