Skip to main content

header_quick_fixes

Function header_quick_fixes 

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

Quick-fixes that add a uses/consumes clause to the current unit’s header, for every resolution diagnostic whose span intersects requested. index is the committed round’s binding index; the current unit’s own declarations are excluded as candidates (a name that already resolves locally is not “unresolved”).