* Enable biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports * Apply new rules with format * remove unused currentReplaceContent * update nextTerminalId * fix all format issues * update biome config * add back applyContextOptimizations and killAllChromeBrowsers
16 lines
493 B
TypeScript
16 lines
493 B
TypeScript
import { Empty, EmptyRequest } from "@shared/proto/cline/common"
|
|
import { Controller } from ".."
|
|
|
|
/**
|
|
* 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> {
|
|
// clearTask is called here when the user closes the task
|
|
await controller.clearTask()
|
|
await controller.postStateToWebview()
|
|
return Empty.create()
|
|
}
|