Skip to main content

rules_layers

Function rules_layers 

Source
pub fn rules_layers(workspace_root: &Path) -> Vec<PathBuf>
Expand description

Canonical rule-file layers for workspace_root, highest precedence first: <workspace>/.vtcode/rules/*.rules (project rules), then user rules from the canonical config directory’s rules/, then legacy ~/.vtcode/rules/. Files within a directory load in sorted order; missing directories yield no layers. Both user roots stay in the list so installations that have not migrated to the native/XDG layout keep loading their personal rules.