MCPcopy 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
81fn 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)]
89pub enum LspError {

Callers 1

startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected