Skip to main content

attach_quickfix_data

Function attach_quickfix_data 

Source
fn attach_quickfix_data(
    diag: &mut Diagnostic,
    suggestions: &[Suggestion],
    rope: &Rope,
)
Expand description

Encode suggestions as the QuickFixData JSON payload on diag.data for the LSP code-action handler. No-op when suggestions is empty.