* cancelTask protobuf * changeset * corrected changeset * fixing bad push * more fixes * one small change * ONE more change * missing await --------- Co-authored-by: Andrei Eternal <garoth@gmail.com>
15 lines
436 B
TypeScript
15 lines
436 B
TypeScript
import { Controller } from ".."
|
|
import { Empty, EmptyRequest } from "../../../shared/proto/common"
|
|
|
|
/**
|
|
* Clears the current task
|
|
* @param controller The controller instance
|
|
* @param _request The empty request
|
|
* @returns Empty response
|
|
*/
|
|
export async function clearTask(controller: Controller, _request: EmptyRequest): Promise<Empty> {
|
|
await controller.clearTask()
|
|
await controller.postStateToWebview()
|
|
return Empty.create()
|
|
}
|