MCPcopy Create free account
hub / github.com/GCWing/BitFun / should_use_workspace_search

Function should_use_workspace_search

src/apps/desktop/src/api/search_api.rs:108–115  ·  view source on GitHub ↗
(
    state: &State<'_, AppState>,
    root_path: &str,
)

Source from the content-addressed store, hash-verified

106}
107
108pub(crate) async fn should_use_workspace_search(
109 state: &State<'_, AppState>,
110 root_path: &str,
111) -> bool {
112 workspace_search_unavailable_message(state, root_path)
113 .await
114 .is_none()
115}
116
117pub(crate) async fn prepare_content_search_runner(
118 state: &State<'_, AppState>,

Callers 3

search_filesFunction · 0.85
search_file_contentsFunction · 0.85

Tested by

no test coverage detected