summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/lsp/config.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs
index 0e257ebf4..27f52653d 100644
--- a/cli/lsp/config.rs
+++ b/cli/lsp/config.rs
@@ -165,6 +165,10 @@ impl Default for TestingSettings {
}
}
+fn default_to_true() -> bool {
+ true
+}
+
/// Deno language server specific settings that are applied to a workspace.
#[derive(Debug, Default, Clone, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
@@ -202,7 +206,7 @@ pub struct WorkspaceSettings {
pub internal_debug: bool,
/// A flag that indicates if linting is enabled for the workspace.
- #[serde(default)]
+ #[serde(default = "default_to_true")]
pub lint: bool,
/// A flag that indicates if Dene should validate code against the unstable
@@ -552,7 +556,7 @@ mod tests {
test: true,
},
internal_debug: false,
- lint: false,
+ lint: true,
suggest: CompletionSettings {
complete_function_calls: false,
names: true,