mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add analysis-stats flag to trigger some IDE features
This commit is contained in:
parent
bdc3d0f551
commit
e52027861e
5 changed files with 95 additions and 3 deletions
|
@ -155,6 +155,8 @@ impl Default for ExprFillDefaultMode {
|
|||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct DiagnosticsConfig {
|
||||
/// Whether native diagnostics are enabled.
|
||||
pub enabled: bool,
|
||||
pub proc_macros_enabled: bool,
|
||||
pub proc_attr_macros_enabled: bool,
|
||||
pub disable_experimental: bool,
|
||||
|
@ -171,6 +173,7 @@ impl DiagnosticsConfig {
|
|||
use ide_db::imports::insert_use::ImportGranularity;
|
||||
|
||||
Self {
|
||||
enabled: true,
|
||||
proc_macros_enabled: Default::default(),
|
||||
proc_attr_macros_enabled: Default::default(),
|
||||
disable_experimental: Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue