ycm-core / ycmd

A code-completion & code-comprehension server
https://ycm-core.github.io/ycmd/
GNU General Public License v3.0
1.69k stars 764 forks source link

Make GoToCallers/GoToCallees respect ycmd protocol #1713

Closed bstaletic closed 11 months ago

bstaletic commented 11 months ago

ycmd protocol states that goto responses that contain only a single location will not be a list of locations, but just that location i.e. a json object, not a list of objects.

YCM as the main client uses this type level distinction to decide if it should open a location list or jump right away.


This change is Reviewable

codecov[bot] commented 11 months ago

Codecov Report

Merging #1713 (f510187) into master (e755af6) will increase coverage by 0.03%. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1713 +/- ## ========================================== + Coverage 95.42% 95.45% +0.03% ========================================== Files 83 83 Lines 8123 8115 -8 Branches 164 165 +1 ========================================== - Hits 7751 7746 -5 + Misses 322 318 -4 - Partials 50 51 +1 ```