mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Merge #746
746: Rename assits to assists r=kjeremy a=kjeremy Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
This commit is contained in:
commit
569e1e871e
6 changed files with 5 additions and 5 deletions
|
@ -18,7 +18,7 @@ use ra_syntax::{
|
|||
}
|
||||
};
|
||||
|
||||
use crate::assits::AssistCtx;
|
||||
use crate::assists::AssistCtx;
|
||||
|
||||
pub fn fill_match_arm(ctx: AssistCtx) -> Option<Assist> {
|
||||
let match_expr = ctx.node_at_offset::<ast::MatchExpr>()?;
|
||||
|
@ -110,8 +110,8 @@ mod tests {
|
|||
.with_db(|db| db.parse(frange.file_id))
|
||||
.expect("source file");
|
||||
let ret = analysis
|
||||
.with_db(|db| crate::assits::assists(db, frange.file_id, &source_file, frange.range))
|
||||
.expect("assits");
|
||||
.with_db(|db| crate::assists::assists(db, frange.file_id, &source_file, frange.range))
|
||||
.expect("assists");
|
||||
|
||||
assert_debug_snapshot_matches!(name, ret);
|
||||
}
|
|
@ -240,7 +240,7 @@ impl db::RootDatabase {
|
|||
let file = self.parse(frange.file_id);
|
||||
ra_ide_api_light::assists::assists(&file, frange.range)
|
||||
.into_iter()
|
||||
.chain(crate::assits::assists(self, frange.file_id, &file, frange.range).into_iter())
|
||||
.chain(crate::assists::assists(self, frange.file_id, &file, frange.range).into_iter())
|
||||
.map(|local_edit| SourceChange::from_local_edit(frange.file_id, local_edit))
|
||||
.collect()
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ mod syntax_highlighting;
|
|||
mod parent_module;
|
||||
mod rename;
|
||||
mod impls;
|
||||
mod assits;
|
||||
mod assists;
|
||||
|
||||
#[cfg(test)]
|
||||
mod marks;
|
||||
|
|
Loading…
Reference in a new issue