mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add config for preferring / ignoring prelude modules in find_path
This commit is contained in:
parent
801a887954
commit
ba61766217
36 changed files with 260 additions and 54 deletions
|
@ -225,6 +225,7 @@ pub struct DiagnosticsConfig {
|
|||
// FIXME: We may want to include a whole `AssistConfig` here
|
||||
pub insert_use: InsertUseConfig,
|
||||
pub prefer_no_std: bool,
|
||||
pub prefer_prelude: bool,
|
||||
}
|
||||
|
||||
impl DiagnosticsConfig {
|
||||
|
@ -247,6 +248,7 @@ impl DiagnosticsConfig {
|
|||
skip_glob_imports: false,
|
||||
},
|
||||
prefer_no_std: false,
|
||||
prefer_prelude: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue