Skip to main content

handle_file_read

Function handle_file_read 

Source
pub async fn handle_file_read(
    server: &ProtocolServer,
    req: FileReadRequest,
) -> Result<Response<FileReadResponse>, Status>
Expand description

Handle a FileRead RPC.

Reads a file through the session workspace overlay:

  1. Check the overlay for session-local modifications.
  2. Fall through to the Git tree at the workspace’s base commit.