pub fn resolve_module_uri(
module_name: &str,
open_document_uris: &[String],
workspace_folders: &[String],
include_paths: &[String],
use_system_inc: bool,
system_inc: &[PathBuf],
timeout: Duration,
) -> ModuleUriResolutionExpand description
Resolve a module name to a file:// URI using deterministic precedence.
Search order:
- Open document URIs (
ends_withmatch on relative module path) - Workspace folders +
include_paths(path-safe filesystem checks) - System
@INCpaths (whenuse_system_incis true)
The search observes timeout and returns ModuleUriResolution::TimedOut if
the budget is exhausted.