pub fn clear_tool_cache_for_root(project_root: Option<&Path>)Expand description
Invalidate only the tool-cache entries scoped to project_root.
The resolution and availability caches are both keyed by project root, and a tool’s resolved location depends only on the root in its key (node_modules/.bin is relative to that root; PATH and well-known lookups are root-independent), so reconfiguring one root can never stale another root’s entry. A global clear on every root change was therefore both unnecessary and harmful: under the daemon it dumped every other root’s cache, and because it ran on a configure background thread it raced test-local cache assertions elsewhere in the process. Scoping the clear to the reconfigured root removes both problems.