pub fn select_catalog_schema(
supported: &[Value],
capabilities: &ClientCapabilities,
accepts_inline: bool,
) -> Result<Value>Expand description
Picks the catalog document both sides can speak.
The renderer’s order is the preference order. When it supplies inline
catalogs and accepts_inline is set, their components are merged into the
selection — keeping the selected catalog’s catalogId, because that id is
what the two sides negotiated on and what createSurface will carry.
§Errors
Returns Error::Catalog when the renderer supports none of the agent’s
catalogs, when it offers inline catalogs the agent does not accept, or when
the agent has no catalogs at all.