Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Document default for include_warnings (#47838)

Fernando Pérez7053561b633c
diff --git a/assets/settings/default.json b/assets/settings/default.json
index 6f0c505fb41..bd41f1704f6 100644
--- a/assets/settings/default.json
+++ b/assets/settings/default.json
@@ -1376,6 +1376,8 @@
// Whether to show the project diagnostics button in the status bar.
"button": true,
// Whether to show warnings or not by default.
+ //
+ // Default: true
"include_warnings": true,
// Settings for using LSP pull diagnostics mechanism in Zed.
"lsp_pull_diagnostics": {
diff --git a/crates/settings_content/src/project.rs b/crates/settings_content/src/project.rs
index 0273724c9e1..be6ad65ac46 100644
--- a/crates/settings_content/src/project.rs
+++ b/crates/settings_content/src/project.rs
@@ -526,6 +526,8 @@ pub struct DiagnosticsSettingsContent {
pub button: Option<bool>,
/// Whether or not to include warning diagnostics.
+ ///
+ /// Default: true
pub include_warnings: Option<bool>,
/// Settings for using LSP pull diagnostics mechanism in Zed.