Functionsยง
- canonical_
workspace_ root - Canonicalize a workspace root directory.
- discover_
git_ repo_ root - Discover a git repository root from any of the given workspace paths.
- ensure_
extract_ path_ within - Resolve a relative path for extraction under
extract_root(e.g. git tree checkout). - file_
uri_ to_ path - Resolve a
file://URI to a path (not necessarily canonical). - is_
path_ within - Returns true if
pathisworkspace_rootor nested under it. - is_
path_ within_ any - Returns true if
pathis under any of the workspace roots. - path_
has_ parent_ escape - Reject paths that escape upward via
..before canonicalize (symlink-free check). - paths_
refer_ to_ same - True when two paths refer to the same filesystem location.
- resolve_
document_ path - Resolve a document URI and ensure it lies under
workspace_root(both canonical). - resolve_
lsp_ document_ path - Resolve an LSP document URI under
workspace_rootwithout requiring the file to exist. - resolve_
lsp_ document_ path_ any - Resolve an LSP document URI under any registered workspace root.
- validate_
workspace_ scope - Ensure
pathis the workspace root or a subdirectory of it (after canonicalization). - validate_
workspace_ scope_ any - Ensure
pathis under at least one workspace root. - workspace_
uri_ to_ path - Resolve a
file://workspace URI to a canonical directory path.