MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / format_location

Function format_location

crates/opencode-tool/src/lsp_tool.rs:352–357  ·  view source on GitHub ↗
(loc: &lsp_types::Location)

Source from the content-addressed store, hash-verified

350
351#[cfg(feature = "lsp")]
352fn format_location(loc: &lsp_types::Location) -> String {
353 let path = loc.uri.to_string();
354 let line = loc.range.start.line + 1;
355 let character = loc.range.start.character + 1;
356 format!("{}:{}:{}", path, line, character)
357}
358
359#[cfg(feature = "lsp")]
360fn format_location_result(label: &str, loc: lsp_types::Location) -> String {

Callers 1

execute_with_lspFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected