Skip to main content

resolve_document_dirs

Function resolve_document_dirs 

Source
pub fn resolve_document_dirs(
    documents: &[String],
    base_dir: Option<&Path>,
) -> Vec<PathBuf>
Expand description

Shared option→validation mapping and document-dir resolution — single source of truth so the LSP/MCP diagnostics cannot drift from check (issue #1648). Resolve documents option directories to filesystem paths.

Absolute entries pass through; relative entries join onto base_dir when it is Some, otherwise are kept as-is (single-file buffers without an on-disk path). Shared so check and the LSP resolve document directories identically.