* Formats a Location with file path and line/character position
(location: Location, cwd?: string)
| 97 | * Formats a Location with file path and line/character position |
| 98 | */ |
| 99 | function formatLocation(location: Location, cwd?: string): string { |
| 100 | const filePath = formatUri(location.uri, cwd) |
| 101 | const line = location.range.start.line + 1 // Convert to 1-based |
| 102 | const character = location.range.start.character + 1 // Convert to 1-based |
| 103 | return `${filePath}:${line}:${character}` |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Converts LocationLink to Location format for consistent handling |
no test coverage detected