Skip to main content

ExtractGlobPattern

Function ExtractGlobPattern 

Source
pub(crate) fn ExtractGlobPattern(Pattern: &Value) -> Option<String>
Expand description

Extract a glob string from any shape the caller can supply:

  • Bare string → returned as-is.
  • Object with pattern field (VS Code RelativePattern).
  • Object with value field (legacy serialised form).
  • Object with Pattern field (PascalCase variant).