import { Controller } from ".." import { Empty, StringRequest } from "@shared/proto/cline/common" import { openFile as openFileIntegration } from "@integrations/misc/open-file" /** * Opens a file in the editor * @param controller The controller instance * @param request The request message containing the file path in the 'value' field * @returns Empty response */ export async function openFile(_controller: Controller, request: StringRequest): Promise { if (request.value) { openFileIntegration(request.value) } return Empty.create() }