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:
parent
10a68a5635
commit
8af81d98a6
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue