Skip to main content

quick_fixes

Function quick_fixes 

Source
pub fn quick_fixes(
    text: &str,
    diagnostics: &[Diagnostic],
    requested: Span,
    uri: &Url,
    version: Option<i32>,
) -> Vec<CodeActionOrCommand>
Expand description

Quick-fixes for every suggestion whose owning diagnostic intersects the requested range. text and version are the analysed snapshot and the open-document version captured with it.