Files
cline-multi-mirror/src/core/controller/task/clearTask.ts
T
Bee 06e0973c04 Apply biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports (#5545)
* 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
2025-08-19 11:57:50 -07:00

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()
}