Skip to main content

CompileGlobToRegex

Function CompileGlobToRegex 

Source
fn CompileGlobToRegex(Pattern: &str) -> Option<Regex>
Expand description

Translate a VS Code glob pattern into a regex::Regex so the native watcher can apply the caller’s filter before paying for an IPC hop. A small subset of the glob grammar is supported (**, *, ?, […], {…,…} alternation) - exactly what TypeScript-language-features and the other ship-time extensions rely on.