From a38a9dabb2605926df5f4d6fc20387b2b6570e41 Mon Sep 17 00:00:00 2001 From: Jassiel Ovando Date: Sun, 26 Jul 2026 17:31:44 -0400 Subject: [PATCH] update to 7th draft and fix typos --- schema.json | 6 +++--- src/Config.zig | 4 ++-- src/tools/config.json | 4 ++-- src/tools/config_gen.zig | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/schema.json b/schema.json index c7ee96244..ae3255940 100644 --- a/schema.json +++ b/schema.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-04/schema", + "$schema": "https://json-schema.org/draft-07/schema", "title": "ZLS Config", "description": "Configuration file for ZLS", "type": "object", @@ -20,7 +20,7 @@ "default": true }, "enable_build_on_save": { - "description": "Whether to enable build-on-save diagnostics. Will be automatically enabled if the `build.zig` has declared a 'check' step.\n\nFor more infromation, checkout the [Build-On-Save](https://zigtools.org/zls/guides/build-on-save/) Guide.", + "description": "Whether to enable build-on-save diagnostics. Will be automatically enabled if the `build.zig` has declared a 'check' step.\n\nFor more information, checkout the [Build-On-Save](https://zigtools.org/zls/guides/build-on-save/) Guide.", "type": "boolean", "default": null }, @@ -78,7 +78,7 @@ "default": false }, "force_autofix": { - "description": "Work around editors that do not support 'source.fixall' code actions on save. This option may delivered a substandard user experience. Please refer to the installation guide to see which editors natively support code actions on save.", + "description": "Work around editors that do not support 'source.fixall' code actions on save. This option may deliver a substandard user experience. Please refer to the installation guide to see which editors natively support code actions on save.", "type": "boolean", "default": false }, diff --git a/src/Config.zig b/src/Config.zig index 846e0e73b..161fde6c8 100644 --- a/src/Config.zig +++ b/src/Config.zig @@ -15,7 +15,7 @@ completion_label_details: bool = true, /// Whether to enable build-on-save diagnostics. Will be automatically enabled if the `build.zig` has declared a 'check' step. /// -/// For more infromation, checkout the [Build-On-Save](https://zigtools.org/zls/guides/build-on-save/) Guide. +/// For more information, checkout the [Build-On-Save](https://zigtools.org/zls/guides/build-on-save/) Guide. enable_build_on_save: ?bool = null, /// Specify which arguments should be passed to Zig when running build-on-save. @@ -51,7 +51,7 @@ inlay_hints_hide_redundant_param_names: bool = false, /// Hides inlay hints when parameter name matches the last token of a parameter node (e.g. `foo: bar.foo`, `foo: &foo`) inlay_hints_hide_redundant_param_names_last_token: bool = false, -/// Work around editors that do not support 'source.fixall' code actions on save. This option may delivered a substandard user experience. Please refer to the installation guide to see which editors natively support code actions on save. +/// Work around editors that do not support 'source.fixall' code actions on save. This option may deliver a substandard user experience. Please refer to the installation guide to see which editors natively support code actions on save. force_autofix: bool = false, /// Enables warnings for style guideline mismatches diff --git a/src/tools/config.json b/src/tools/config.json index 3bfd193df..2db7587b9 100644 --- a/src/tools/config.json +++ b/src/tools/config.json @@ -20,7 +20,7 @@ }, { "name": "enable_build_on_save", - "description": "Whether to enable build-on-save diagnostics. Will be automatically enabled if the `build.zig` has declared a 'check' step.\n\nFor more infromation, checkout the [Build-On-Save](https://zigtools.org/zls/guides/build-on-save/) Guide.", + "description": "Whether to enable build-on-save diagnostics. Will be automatically enabled if the `build.zig` has declared a 'check' step.\n\nFor more information, checkout the [Build-On-Save](https://zigtools.org/zls/guides/build-on-save/) Guide.", "type": "?bool", "default": null }, @@ -85,7 +85,7 @@ }, { "name": "force_autofix", - "description": "Work around editors that do not support 'source.fixall' code actions on save. This option may delivered a substandard user experience. Please refer to the installation guide to see which editors natively support code actions on save.", + "description": "Work around editors that do not support 'source.fixall' code actions on save. This option may deliver a substandard user experience. Please refer to the installation guide to see which editors natively support code actions on save.", "type": "bool", "default": false }, diff --git a/src/tools/config_gen.zig b/src/tools/config_gen.zig index adebe8b85..cd8d365ce 100644 --- a/src/tools/config_gen.zig +++ b/src/tools/config_gen.zig @@ -82,7 +82,7 @@ const Config = struct { }; const Schema = struct { - @"$schema": []const u8 = "http://json-schema.org/draft-04/schema", + @"$schema": []const u8 = "https://json-schema.org/draft-07/schema", title: []const u8 = "ZLS Config", description: []const u8 = "Configuration file for ZLS", type: []const u8 = "object",