* Converts LocationLink to Location format for uniform handling
(item: Location | LocationLink)
| 621 | * Converts LocationLink to Location format for uniform handling |
| 622 | */ |
| 623 | function toLocation(item: Location | LocationLink): Location { |
| 624 | if (isLocationLink(item)) { |
| 625 | return { |
| 626 | uri: item.targetUri, |
| 627 | range: item.targetSelectionRange || item.targetRange, |
| 628 | } |
| 629 | } |
| 630 | return item |
| 631 | } |
| 632 | |
| 633 | /** |
| 634 | * Formats LSP result based on operation type and extracts summary counts |
no test coverage detected