diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-05-16 13:10:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 13:10:08 +0200 |
commit | 8af81d98a6d673fde3a5c2acacf6ad00c53b9223 (patch) | |
tree | 817851b1f4b7b29f5f9c62ca2f628cad070f838b /cli | |
parent | 10a68a56354b8e5235084fd5eb63b056965f2418 (diff) |
feat(lsp): enable linting by default (#14583)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/lsp/config.rs | 8 |
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, |