Expand description
Glob pattern extraction helpers for WorkspaceProvider::FindFiles calls.
VS Code passes glob patterns in several shapes depending on the caller:
- Bare string:
"**/*.rs" RelativePatternobject:{ base, pattern }or{ baseUri, pattern }- Legacy serialised form:
{ value: "**/*.rs" }
These helpers normalise all shapes to a String and extract the optional
base directory for bounded walks.
Functions§
- Extract
Glob Pattern - Extract a glob string from any shape the caller can supply:
- Extract
Relative Base - Extract a
basedirectory from aRelativePattern-shaped value. VS Code’sRelativePatterncarries{ base, pattern }or{ baseUri, pattern }. When present, the file walk is restricted tobase. ReturnsNonefor plain glob strings.