* Reorganized proto directory structure to match package naming convention Moved cline package protos from the proto directory to proto/cline/ directory Host package protos remain in proto/host/ directory Updated all import statements across codebase to reflect new proto paths Removed proto linter exception for package/directory mismatch rule Fix Vscode proto indexing errors by setting the proto path in the Vscode settings. * Update imports to use new package Update imports from @shared/proto/<thing> to @share/proto/cline/<thing>
17 lines
557 B
TypeScript
17 lines
557 B
TypeScript
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<Empty> {
|
|
if (request.value) {
|
|
openFileIntegration(request.value)
|
|
}
|
|
return Empty.create()
|
|
}
|