Allow styling of invalid diagnostics
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
8d5e3fb159
commit
2664dad2bc
6 changed files with 52 additions and 29 deletions
|
@ -227,12 +227,14 @@ pub struct EditorStyle {
|
|||
pub line_number_active: Color,
|
||||
pub guest_selections: Vec<SelectionStyle>,
|
||||
pub syntax: Arc<SyntaxTheme>,
|
||||
pub diagnostic_error: DiagnosticStyle,
|
||||
pub diagnostic_warning: DiagnosticStyle,
|
||||
#[serde(default)]
|
||||
pub diagnostic_information: DiagnosticStyle,
|
||||
#[serde(default)]
|
||||
pub diagnostic_hint: DiagnosticStyle,
|
||||
pub error_diagnostic: DiagnosticStyle,
|
||||
pub invalid_error_diagnostic: DiagnosticStyle,
|
||||
pub warning_diagnostic: DiagnosticStyle,
|
||||
pub invalid_warning_diagnostic: DiagnosticStyle,
|
||||
pub information_diagnostic: DiagnosticStyle,
|
||||
pub invalid_information_diagnostic: DiagnosticStyle,
|
||||
pub hint_diagnostic: DiagnosticStyle,
|
||||
pub invalid_hint_diagnostic: DiagnosticStyle,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Deserialize, Default)]
|
||||
|
@ -288,10 +290,14 @@ impl InputEditorStyle {
|
|||
line_number_active: Default::default(),
|
||||
guest_selections: Default::default(),
|
||||
syntax: Default::default(),
|
||||
diagnostic_error: Default::default(),
|
||||
diagnostic_warning: Default::default(),
|
||||
diagnostic_information: Default::default(),
|
||||
diagnostic_hint: Default::default(),
|
||||
error_diagnostic: Default::default(),
|
||||
invalid_error_diagnostic: Default::default(),
|
||||
warning_diagnostic: Default::default(),
|
||||
invalid_warning_diagnostic: Default::default(),
|
||||
information_diagnostic: Default::default(),
|
||||
invalid_information_diagnostic: Default::default(),
|
||||
hint_diagnostic: Default::default(),
|
||||
invalid_hint_diagnostic: Default::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue