Skip to main content

parse_methods

Function parse_methods 

Source
pub fn parse_methods(response: &Value) -> Result<Vec<Method>>
Expand description

Filters, sanitizes, and deduplicates the raw JSON arrays returned by the LSP completion query.

ยงErrors

Returns an error if the provided JSON response does not conform to the expected LSP completion shape (missing both a top-level result array and an items sub-array).