Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Commit 2ce40e2

Browse files
committed
update the creation of the sorted Locations
To reflect the changes from the review of the text-document PR #7
1 parent 39770a0 commit 2ce40e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/LanguageServerReferenceFinder/Handler/ReferencesHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ public function references(
161161
*/
162162
private function toLocations(array $locations): array
163163
{
164-
return $this->locationConverter->toLspLocations(Locations::bySorting($locations));
164+
return $this->locationConverter->toLspLocations(
165+
(new Locations($locations))->sorted()
166+
);
165167
}
166168

167169
public function registerCapabiltiies(ServerCapabilities $capabilities): void

0 commit comments

Comments
 (0)