Skip to main content

extract_variable

Function extract_variable 

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

Extract-variable actions for the requested range. Only offered for a genuine selection (requested.start != requested.end) — a bare cursor offers nothing, the refactor-vs-quickfix posture other editors take.