From d8b574a0cc29055427292458b9565d5fc381b503 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Sat, 3 Sep 2022 15:12:34 +0200 Subject: [PATCH] enable ast-check by default --- README.md | 2 +- schema.json | 2 +- src/Config.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e276893..be14c27 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ The following options are currently available. | --- | --- | --- | --- | | `enable_snippets` | `bool` | `false` | Enables snippet completions when the client also supports them. | | `enable_unused_variable_warnings` | `bool` | `false`| Enables warnings for local variables that aren't used. | -| `enable_import_embedfile_argument_completions` | `bool` | `false` | Whether to enable import/embedFile argument completions | +| `enable_ast_check_diagnostics` | `bool` | `true` | Whether to enable ast-check diagnostics | | `zig_lib_path` | `?[]const u8` | `null` | zig library path, e.g. `/path/to/zig/lib/zig`, used to analyze std library imports. | | `zig_exe_path` | `?[]const u8` | `null` | zig executable path, e.g. `/path/to/zig/zig`, used to run the custom build runner. If `null`, zig is looked up in `PATH`. Will be used to infer the zig standard library path if none is provided. | | `warn_style` | `bool` | `false` | Enables warnings for style *guideline* mismatches | diff --git a/schema.json b/schema.json index 4ad59fb..79e3c33 100644 --- a/schema.json +++ b/schema.json @@ -12,7 +12,7 @@ "enable_ast_check_diagnostics": { "description": "Whether to enable ast-check diagnostics", "type": "boolean", - "default": "false" + "default": "true" }, "enable_import_embedfile_argument_completions": { "description": "Whether to enable import/embedFile argument completions", diff --git a/src/Config.zig b/src/Config.zig index 2d651c4..01558a1 100644 --- a/src/Config.zig +++ b/src/Config.zig @@ -14,7 +14,7 @@ const logger = std.log.scoped(.config); enable_snippets: bool = false, /// Whether to enable ast-check diagnostics -enable_ast_check_diagnostics: bool = false, +enable_ast_check_diagnostics: bool = true, /// Whether to enable import/embedFile argument completions (NOTE: these are triggered manually as updating the autotrigger characters may cause issues) enable_import_embedfile_argument_completions: bool = false,