(loc: &lsp_types::Location)
| 350 | |
| 351 | #[cfg(feature = "lsp")] |
| 352 | fn 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")] |
| 360 | fn format_location_result(label: &str, loc: lsp_types::Location) -> String { |