/// Computes assists (aka code actions aka intentions) for the given
/// position.
Computes assists (aka code actions aka intentions) for the given
position.
Computes assists ( aka code actions aka intentions ) for the given position .
pub fn assists(&self, config: &AssistConfig, frange: FileRange) -> Cancelable<Vec<Assist>> {
        self.with_db(|db| {
            ra_assists::Assist::resolved(db, config, frange)
                .into_iter()
                .map(|assist| Assist {
                    id: assist.assist.id,
                    label: assist.assist.label,
                    group_label: assist.assist.group.map(|it| it.0),
                    source_change: assist.source_change,
                })
                .collect()
        })
    }
pub fn assists ( & self , config : & AssistConfig , frange : FileRange ) -> Cancelable < Vec < Assist > > { self . with_db ( | db | { ra_assists :: Assist :: resolved ( db , config , frange ) . into_iter ( ) . map ( | assist | Assist { id : assist . assist . id , label : assist . assist . label , group_label : assist . assist . group . map ( | it | it . 0 ) , source_change : assist . source_change , } ) . collect ( ) } ) }
Computes assists (aka code actions aka intentions) for the given
position.
Computes assists ( aka code actions aka intentions ) for the given position .
&self
config
&AssistConfig
frange
FileRange