pub fn resolve_lsp_document_path(
uri: &str,
workspace_root: &Path,
) -> Result<PathBuf, String>Expand description
Resolve an LSP document URI under workspace_root without requiring the file to exist.
Canonicalizes when the path exists on disk; otherwise resolves via the longest existing path prefix so symlink parents cannot escape the workspace.