Move rerun behavior api out of proposed (#63511)

Fixes #62789
This commit is contained in:
Alex Ross
2018-11-30 15:31:13 +01:00
committed by GitHub
parent ddd46e8622
commit e16c62b315
12 changed files with 38 additions and 71 deletions

View File

@@ -783,7 +783,6 @@ export function createApiFactory(
QuickInputButtons: extHostTypes.QuickInputButtons,
Range: extHostTypes.Range,
RelativePattern: extHostTypes.RelativePattern,
RerunBehavior: extHostTypes.RerunBehavior,
Selection: extHostTypes.Selection,
ShellExecution: extHostTypes.ShellExecution,
ShellQuoting: extHostTypes.ShellQuoting,

View File

@@ -404,7 +404,7 @@ namespace Tasks {
isBackground: !!task.isBackground,
problemMatchers: task.problemMatchers.slice(),
hasDefinedMatchers: (task as types.Task).hasDefinedMatchers,
runOptions: (<vscode.Task2>task).runOptions ? (<vscode.Task2>task).runOptions : { rerunBehavior: tasks.RerunBehavior.reevaluate },
runOptions: (<vscode.Task>task).runOptions ? (<vscode.Task>task).runOptions : { reevaluateOnRerun: true },
};
return result;
}
@@ -631,7 +631,7 @@ namespace TaskDTO {
presentationOptions: TaskPresentationOptionsDTO.from(value.presentationOptions),
problemMatchers: value.problemMatchers,
hasDefinedMatchers: (value as types.Task).hasDefinedMatchers,
runOptions: (<vscode.Task2>value).runOptions ? (<vscode.Task2>value).runOptions : { rerunBehavior: tasks.RerunBehavior.reevaluate },
runOptions: (<vscode.Task>value).runOptions ? (<vscode.Task>value).runOptions : { reevaluateOnRerun: true },
};
return result;
}

View File

@@ -1591,12 +1591,7 @@ export enum TaskScope {
Workspace = 2
}
export enum RerunBehavior {
reevaluate = 1,
useEvaluated = 2,
}
export class Task implements vscode.Task2 {
export class Task implements vscode.Task {
private static ProcessType: string = 'process';
private static ShellType: string = 'shell';