Skip to main content

ExtractRelativeBase

Function ExtractRelativeBase 

Source
fn ExtractRelativeBase(Pattern: &Value) -> Option<String>
Expand description

Extract a base directory from a RelativePattern-shaped value. VS Code’s RelativePattern carries { base, pattern } (or { baseUri, pattern }); when present, the walk must be restricted to base. Returns None for plain glob strings.