Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ uri_to_path
Function
uri_to_path
crates/opencode-lsp/src/lib.rs:81–86 ·
view source on GitHub ↗
(uri: &lsp_types::Uri)
Source
from the content-addressed store, hash-verified
79
}
80
81
fn uri_to_path(uri: &lsp_types::Uri) -> PathBuf {
82
Url::parse(&uri.to_string())
83
.ok()
84
.and_then(|u| u.to_file_path().ok())
85
.unwrap_or_default()
86
}
87
88
#[derive(Debug, Error)]
89
pub enum LspError {
Callers
1
start
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected