Files
cline-multi-mirror/src/core/controller/file/openImage.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

17 lines
589 B
TypeScript

import { openImage as openImageIntegration } from "@integrations/misc/open-file"
import { Empty, StringRequest } from "@shared/proto/cline/common"
import { Controller } from ".."
/**
* Opens an image in the system viewer
* @param controller The controller instance
* @param request The request message containing the image path or data URI in the 'value' field
* @returns Empty response
*/
export async function openImage(_controller: Controller, request: StringRequest): Promise<Empty> {
if (request.value) {
await openImageIntegration(request.value)
}
return Empty.create()
}