mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:06:57 +00:00
Wrap task API into proposedApiFunction
This commit is contained in:
parent
da9720b39b
commit
2e9910fee0
1 changed files with 4 additions and 10 deletions
|
@ -520,18 +520,12 @@ export function createApiFactory(
|
||||||
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
||||||
return extHostTask.registerTaskProvider(extension, provider);
|
return extHostTask.registerTaskProvider(extension, provider);
|
||||||
},
|
},
|
||||||
// fetchTasks: proposedApiFunction(extension, (): Thenable<vscode.Task[]> => {
|
fetchTasks: proposedApiFunction(extension, (): Thenable<vscode.Task[]> => {
|
||||||
// return extHostTask.executeTaskProvider();
|
|
||||||
// }),
|
|
||||||
// executeTask: proposedApiFunction(extension, (task: vscode.Task): Thenable<vscode.TaskExecution> => {
|
|
||||||
// return extHostTask.executeTask(extension, task);
|
|
||||||
// }),
|
|
||||||
fetchTasks: (): Thenable<vscode.Task[]> => {
|
|
||||||
return extHostTask.executeTaskProvider();
|
return extHostTask.executeTaskProvider();
|
||||||
},
|
}),
|
||||||
executeTask: (task: vscode.Task): Thenable<vscode.TaskExecution> => {
|
executeTask: proposedApiFunction(extension, (task: vscode.Task): Thenable<vscode.TaskExecution> => {
|
||||||
return extHostTask.executeTask(extension, task);
|
return extHostTask.executeTask(extension, task);
|
||||||
},
|
}),
|
||||||
onDidStartTask: (listeners, thisArgs?, disposables?) => {
|
onDidStartTask: (listeners, thisArgs?, disposables?) => {
|
||||||
return extHostTask.onDidStartTask(listeners, thisArgs, disposables);
|
return extHostTask.onDidStartTask(listeners, thisArgs, disposables);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue