mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
MergeBehavior -> ImportGranularity
This commit is contained in:
parent
e3d0d89d7e
commit
64f7072c25
8 changed files with 75 additions and 38 deletions
|
@ -4,7 +4,10 @@ use expect_test::expect;
|
|||
use hir::Semantics;
|
||||
use ide_db::{
|
||||
base_db::{fixture::WithFixture, FileId, FileRange, SourceDatabaseExt},
|
||||
helpers::{insert_use::InsertUseConfig, merge_imports::MergeBehavior, SnippetCap},
|
||||
helpers::{
|
||||
insert_use::{ImportGranularity, InsertUseConfig},
|
||||
SnippetCap,
|
||||
},
|
||||
source_change::FileSystemEdit,
|
||||
RootDatabase,
|
||||
};
|
||||
|
@ -21,7 +24,7 @@ pub(crate) const TEST_CONFIG: AssistConfig = AssistConfig {
|
|||
snippet_cap: SnippetCap::new(true),
|
||||
allowed: None,
|
||||
insert_use: InsertUseConfig {
|
||||
merge: Some(MergeBehavior::Crate),
|
||||
granularity: ImportGranularity::Crate,
|
||||
prefix_kind: hir::PrefixKind::Plain,
|
||||
group: true,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue