Skip to main content

Module workspace

Module workspace 

Source

Structs§

Workspace
Represents a bound workspace session.

Enums§

WorkspaceError

Functions§

clean_path
Lexically clean a path by collapsing . and .. components.
is_hard_excluded
Check if a relative path contains directories or file patterns that must never be indexed or watched.
is_project_root
True when root carries a repository or language project marker.
normalize_path
Strip Windows verbatim prefix (\?, \?\UNC) using dunce.
parse_file_uri
Parse an MCP file URI or plain path into a normalized PathBuf. Handles standard file URIs (file:///path), two-slash drive letter URIs (file://C:/...), pipe drive delimiters (file:///C|/..., file://C|/...), percent-encoding (%20, %7C), and plain paths.
paths_equal
Compare two paths for logical identity. On Windows, normalizes verbatim prefixes via dunce and compares disk prefixes and components case-insensitively. On non-Windows, compares paths directly.
strip_prefix_lossy
Strips base from path. On Windows, if standard strip_prefix fails, performs case-insensitive component comparison to support Windows case-preserving filesystems.
to_forward_slash
Convert a path to forward-slash string representation for stable relative paths.