Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    query: &str,
    root: &Path,
    path_source: Option<&dyn PathSource>,
) -> Vec<PathMatch>
Expand description

Resolve a fuzzy query to matching paths.

Handles:

  • Absolute paths: /tmp/foo.py (if file exists)
  • Extension patterns: .rs, .py (returns all matching files)
  • Exact paths: src/myapp/dwim.py
  • Partial filenames: dwim.py, dwim
  • Directory names: myapp, src

Note: colon-paths like src/main.py:MyClass are silently truncated — only the file component before : is resolved. Symbol resolution is left to the caller (use resolve_unified if you need both file and symbol).