Skip to main content

compile_with_workspace_root

Function compile_with_workspace_root 

Source
pub fn compile_with_workspace_root(
    caps: &Capabilities,
    server_id: Arc<str>,
    workspace_root: &Path,
) -> WatcherSubscriptions
Expand description

Build a WatcherSubscriptions whose plain-string globs all anchor to workspace_root. The bare compile_for_server captures the path verbatim because some callers (tests, future per-folder workspace roots) want a custom anchor. Public entry-point most call sites use.