Skip to main content

normalised_code_search_path

Function normalised_code_search_path 

Source
pub fn normalised_code_search_path(path: &str) -> String
Expand description

Lexically normalize a search path without erasing leading .. components.

The shared path helper intentionally clamps a relative path at an empty buffer, which is useful for some workspace display paths but would make an escaping ../target search collide with an in-workspace target cache entry. Preserve unresolved parents so replay identity remains fail-closed.