mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
rename code-actions -> assists
This commit is contained in:
parent
0a80d9685a
commit
5323e59996
3 changed files with 8 additions and 8 deletions
|
@ -6,7 +6,7 @@ use hir::{
|
|||
self, FnSignatureInfo, Problem, source_binder,
|
||||
};
|
||||
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::{
|
||||
algo::{find_covering_node, visit::{visitor, Visitor}},
|
||||
ast::{self, ArgListOwner, Expr, FnDef, NameOwner},
|
||||
|
@ -335,11 +335,11 @@ impl db::RootDatabase {
|
|||
let file = self.source_file(frange.file_id);
|
||||
let offset = frange.range.start();
|
||||
let actions = vec![
|
||||
ra_editor::flip_comma(&file, offset).map(|f| f()),
|
||||
ra_editor::add_derive(&file, offset).map(|f| f()),
|
||||
ra_editor::add_impl(&file, offset).map(|f| f()),
|
||||
ra_editor::make_pub_crate(&file, offset).map(|f| f()),
|
||||
ra_editor::introduce_variable(&file, frange.range).map(|f| f()),
|
||||
assists::flip_comma(&file, offset).map(|f| f()),
|
||||
assists::add_derive(&file, offset).map(|f| f()),
|
||||
assists::add_impl(&file, offset).map(|f| f()),
|
||||
assists::make_pub_crate(&file, offset).map(|f| f()),
|
||||
assists::introduce_variable(&file, frange.range).map(|f| f()),
|
||||
];
|
||||
actions
|
||||
.into_iter()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
mod code_actions;
|
||||
pub mod assists;
|
||||
mod extend_selection;
|
||||
mod folding_ranges;
|
||||
mod line_index;
|
||||
|
@ -10,7 +10,7 @@ mod typing;
|
|||
mod diagnostics;
|
||||
|
||||
pub use self::{
|
||||
code_actions::{add_derive, add_impl, flip_comma, introduce_variable, make_pub_crate, LocalEdit},
|
||||
assists::LocalEdit,
|
||||
extend_selection::extend_selection,
|
||||
folding_ranges::{folding_ranges, Fold, FoldKind},
|
||||
line_index::{LineCol, LineIndex},
|
||||
|
|
Loading…
Reference in a new issue