|
1 | 1 | use crate::{ |
2 | | - annotations::diagnostics::{DiagnosticFilter, InlineDiagnosticsConfig}, |
| 2 | + annotations::diagnostics::DiagnosticsConfig, |
3 | 3 | clipboard::ClipboardProvider, |
4 | 4 | document::{ |
5 | 5 | DocumentOpenError, DocumentSavedEventFuture, DocumentSavedEventResult, Mode, SavePoint, |
@@ -415,10 +415,7 @@ pub struct Config { |
415 | 415 | deserialize_with = "deserialize_alphabet" |
416 | 416 | )] |
417 | 417 | pub jump_label_alphabet: Vec<char>, |
418 | | - pub enable_diagnostics: bool, |
419 | | - /// Display diagnostic below the line they occur. |
420 | | - pub inline_diagnostics: InlineDiagnosticsConfig, |
421 | | - pub end_of_line_diagnostics: DiagnosticFilter, |
| 418 | + pub diagnostics: DiagnosticsConfig, |
422 | 419 | // Set to override the default clipboard provider |
423 | 420 | pub clipboard_provider: ClipboardProvider, |
424 | 421 | /// Whether to read settings from [EditorConfig](https://editorconfig.org) files. Defaults to |
@@ -1140,9 +1137,7 @@ impl Default for Config { |
1140 | 1137 | popup_border: PopupBorderConfig::None, |
1141 | 1138 | indent_heuristic: IndentationHeuristic::default(), |
1142 | 1139 | jump_label_alphabet: ('a'..='z').collect(), |
1143 | | - enable_diagnostics: true, |
1144 | | - inline_diagnostics: InlineDiagnosticsConfig::default(), |
1145 | | - end_of_line_diagnostics: DiagnosticFilter::Enable(Severity::Hint), |
| 1140 | + diagnostics: DiagnosticsConfig::default(), |
1146 | 1141 | clipboard_provider: ClipboardProvider::default(), |
1147 | 1142 | editor_config: true, |
1148 | 1143 | rainbow_brackets: false, |
|
0 commit comments