OXYGENHUB
◆ main oxygen-vscode / src / paths.ts
435 B · last changed Stop the Source Control refresh loop; remotes carry their CA (0.13.0) 1 month ago source blame history raw
1
// Paths inside a checkout, without VS Code: shared by the watcher and tests.
2
3
/**
4
 * Whether a path relative to a repository root lies inside a `.oxy` store at
5
 * any depth: this repository's own, or a subrepo's, which oxy writes to
6
 * while it reports status (so a watcher that refreshed on those writes
7
 * would refresh forever).
8
 */
9
export function isInStore(rel: string): boolean {
10
  return rel.split(/[\\/]/).includes(".oxy");
11
}