mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:06:57 +00:00
parent
3d2bd905cd
commit
eeb5ea617a
1 changed files with 8 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue