rename code-actions -> assists

This commit is contained in:
Aleksey Kladov 2019-01-03 14:14:17 +03:00
parent 0a80d9685a
commit 5323e59996
3 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@ use hir::{
self, FnSignatureInfo, Problem, source_binder, self, FnSignatureInfo, Problem, source_binder,
}; };
use ra_db::{FilesDatabase, SourceRoot, SourceRootId, SyntaxDatabase}; use ra_db::{FilesDatabase, SourceRoot, SourceRootId, SyntaxDatabase};
use ra_editor::{self, find_node_at_offset, LocalEdit, Severity}; use ra_editor::{self, find_node_at_offset, assists, LocalEdit, Severity};
use ra_syntax::{ use ra_syntax::{
algo::{find_covering_node, visit::{visitor, Visitor}}, algo::{find_covering_node, visit::{visitor, Visitor}},
ast::{self, ArgListOwner, Expr, FnDef, NameOwner}, ast::{self, ArgListOwner, Expr, FnDef, NameOwner},
@ -335,11 +335,11 @@ impl db::RootDatabase {
let file = self.source_file(frange.file_id); let file = self.source_file(frange.file_id);
let offset = frange.range.start(); let offset = frange.range.start();
let actions = vec![ let actions = vec![
ra_editor::flip_comma(&file, offset).map(|f| f()), assists::flip_comma(&file, offset).map(|f| f()),
ra_editor::add_derive(&file, offset).map(|f| f()), assists::add_derive(&file, offset).map(|f| f()),
ra_editor::add_impl(&file, offset).map(|f| f()), assists::add_impl(&file, offset).map(|f| f()),
ra_editor::make_pub_crate(&file, offset).map(|f| f()), assists::make_pub_crate(&file, offset).map(|f| f()),
ra_editor::introduce_variable(&file, frange.range).map(|f| f()), assists::introduce_variable(&file, frange.range).map(|f| f()),
]; ];
actions actions
.into_iter() .into_iter()

View file

@ -1,4 +1,4 @@
mod code_actions; pub mod assists;
mod extend_selection; mod extend_selection;
mod folding_ranges; mod folding_ranges;
mod line_index; mod line_index;
@ -10,7 +10,7 @@ mod typing;
mod diagnostics; mod diagnostics;
pub use self::{ pub use self::{
code_actions::{add_derive, add_impl, flip_comma, introduce_variable, make_pub_crate, LocalEdit}, assists::LocalEdit,
extend_selection::extend_selection, extend_selection::extend_selection,
folding_ranges::{folding_ranges, Fold, FoldKind}, folding_ranges::{folding_ranges, Fold, FoldKind},
line_index::{LineCol, LineIndex}, line_index::{LineCol, LineIndex},