Skip to content

Commit

Permalink
task part of #164933
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Nov 3, 2022
1 parent 708cd91 commit 072d289
Showing 1 changed file with 8 additions and 17 deletions.
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

0 comments on commit 072d289

Please sign in to comment.