1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

feat(lsp): enable linting by default (#14583)

This commit is contained in:
Bartek Iwańczuk 2022-05-16 13:10:08 +02:00 committed by GitHub
parent 10a68a5635
commit 8af81d98a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,