AdaCore / ada_language_server

Server implementing the Microsoft Language Protocol for Ada and SPARK
GNU General Public License v3.0
229 stars 54 forks source link

Allow more complex sorting in LSP tests. #974

Closed reznikmm closed 2 years ago

reznikmm commented 2 years ago

Extend sortReply to work with keys nested in objects inside JSON array. With this sort complex reply JSON to have more stable tests.

For instance

"sortReply": {"result": {"range": {"start": "line"}}}

will sort result JSON array using X.range.start.line as a sorting key, where X is an array item.

Allow integer JSON values as sorting keys also.