From 9409ba9689468c8b4ea9371b22eb2ba11354b847 Mon Sep 17 00:00:00 2001 From: David Czihak Date: Sat, 9 May 2026 14:26:55 +0200 Subject: Fix: Add inherit option to bool workspace options Instead of a checkbox, the boolean workspace options now show three radio buttons, adding the option to inherit the value from the global option --- extension.json | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to 'extension.json') diff --git a/extension.json b/extension.json index 2a146da..0938ee5 100644 --- a/extension.json +++ b/extension.json @@ -152,19 +152,37 @@ { "key": "at.dcz.nova-zig.zls.enabled", "title": "Enable ZLS", - "type": "boolean", + "type": "enum", + "default": "inherit", + "values": [ + ["inherit", "Inherit from Global"], + ["enabled", "Enabled"], + ["disabled", "Disabled"] + ], "description": "Enable diagnostics, completion, navigation, and other language-server features." }, { "key": "at.dcz.nova-zig.zls.build-on-save", "title": "Build On Save", - "type": "boolean", + "type": "enum", + "default": "inherit", + "values": [ + ["inherit", "Inherit from Global"], + ["enabled", "Enabled"], + ["disabled", "Disabled"] + ], "description": "Allow ZLS to run its build/check runner on save when the workspace is a Zig project." }, { "key": "at.dcz.nova-zig.zls.debug", "title": "Debug Server Messages", - "type": "boolean", + "type": "enum", + "default": "inherit", + "values": [ + ["inherit", "Inherit from Global"], + ["enabled", "Enabled"], + ["disabled", "Disabled"] + ], "description": "Log ZLS traffic to the Extension Console while developing the extension." } ] @@ -177,7 +195,13 @@ { "key": "at.dcz.nova-zig.debug-adapter.debug", "title": "Enable Proxy Log", - "type": "boolean", + "type": "enum", + "default": "inherit", + "values": [ + ["inherit", "Inherit from Global"], + ["enabled", "Enabled"], + ["disabled", "Disabled"] + ], "description": "Write lldb-dap-proxy traffic to a log file in the extension's storage directory. For extension development only." } ] @@ -190,7 +214,13 @@ { "key": "at.dcz.nova-zig.tasks.discover-steps", "title": "Discover Build Steps", - "type": "boolean", + "type": "enum", + "default": "inherit", + "values": [ + ["inherit", "Inherit from Global"], + ["enabled", "Enabled"], + ["disabled", "Disabled"] + ], "description": "Run `zig build --list-steps` and surface each step as a task in the task list. Disable for projects where running build.zig on activation is undesirable." } ] -- cgit v1.3