Skip to main content

handle_read_file

Function handle_read_file 

Source
pub fn handle_read_file(
    path: &Path,
    from: Option<u32>,
    to: Option<u32>,
    max_lines: Option<u32>,
    project_root: &Path,
) -> Result<Value>
Expand description

Read a file with optional line range and max_lines.

Pure file I/O — no LSP needed.

§Errors

Returns an error if the file can’t be read or is binary.