aboutsummaryrefslogtreecommitdiff
path: root/extension.json
diff options
context:
space:
mode:
authorDavid Czihak <git@dcz.at>2026-05-09 18:54:12 +0200
committerDavid Czihak <git@dcz.at>2026-05-09 18:54:12 +0200
commitd09074e28b9156e920b52ade07e7fd6f5ec3a6c1 (patch)
treefd58cceb85467f0efb0f5813bcbabd5e993b9ba7 /extension.json
parent15a0461e8cfd49a5f2b75ea7179d1e5a4fda81c4 (diff)
Refactor: Improve settings layout and language
- Settings are re-grouped and messages have been improved greatly. - The English language is no longer the default, it moved to a lproj as well, and strings are resolved using a key rather than text.
Diffstat (limited to 'extension.json')
-rw-r--r--extension.json180
1 files changed, 86 insertions, 94 deletions
diff --git a/extension.json b/extension.json
index 0938ee5..52808c9 100644
--- a/extension.json
+++ b/extension.json
@@ -31,85 +31,93 @@
"config": [
{
"type": "section",
- "title": "Tooling",
- "description": "Paths to the Zig toolchain and language server. Leave blank to discover them from PATH.",
+ "title": "config.general.title",
"children": [
{
"key": "at.dcz.nova-zig.toolchain.zig-path",
- "title": "Zig Executable",
+ "title": "zig.executable-path.title",
"type": "path",
"placeholder": "zig",
- "description": "Absolute path to the Zig executable."
- },
- {
- "key": "at.dcz.nova-zig.toolchain.zls-path",
- "title": "ZLS Executable",
- "type": "path",
- "placeholder": "zls",
- "description": "Absolute path to the ZLS language server executable."
- },
- {
- "key": "at.dcz.nova-zig.toolchain.lldb-dap-path",
- "title": "LLDB DAP Executable",
- "type": "path",
- "placeholder": "lldb-dap",
- "description": "Absolute path to the lldb-dap executable. Leave blank to discover it via xcrun or PATH."
+ "description": "zig.executable-path.info",
+ "allowFiles": true,
+ "allowFolders": false,
+ "filetype": "public.unix-executable"
}
]
},
{
"type": "section",
- "title": "Language Server",
- "description": "Controls for the ZLS integration.",
+ "title": "zls.title",
+ "description": "zls.info",
"children": [
{
"key": "at.dcz.nova-zig.zls.enabled",
- "title": "Enable ZLS",
+ "title": "zls.enable.title",
"type": "boolean",
"default": true,
- "description": "Enable diagnostics, completion, navigation, and other language-server features."
+ "description": "zls.enable.info"
+ },
+ {
+ "key": "at.dcz.nova-zig.toolchain.zls-path",
+ "title": "zls.executable-path.title",
+ "type": "path",
+ "placeholder": "zls",
+ "description": "zls.executable-path.info",
+ "allowFiles": true,
+ "allowFolders": false,
+ "filetype": "public.unix-executable"
},
{
"key": "at.dcz.nova-zig.zls.build-on-save",
- "title": "Build On Save",
+ "title": "zls.build-on-save.title",
"type": "boolean",
"default": false,
- "description": "Allow ZLS to run its build/check runner on save when the workspace is a Zig project."
+ "description": "zls.build-on-save.info"
},
{
"key": "at.dcz.nova-zig.zls.debug",
- "title": "Debug Server Messages",
+ "title": "zls.log-communication.title",
"type": "boolean",
"default": false,
- "description": "Log ZLS traffic to the Extension Console while developing the extension."
+ "description": "zls.log-communication.info"
}
]
},
{
"type": "section",
- "title": "Debug Adapter",
- "description": "Controls for the lldb-dap integration.",
+ "title": "debugging.title",
+ "description": "debugging.info",
"children": [
{
+ "key": "at.dcz.nova-zig.toolchain.lldb-dap-path",
+ "title": "debugging.lldb-dap-path.title",
+ "type": "path",
+ "placeholder": "lldb-dap",
+ "description": "debugging.lldb-dap-path.info",
+ "allowFiles": true,
+ "allowFolders": false,
+ "filetype": "public.unix-executable"
+ },
+ {
"key": "at.dcz.nova-zig.debug-adapter.debug",
- "title": "Enable Proxy Log",
+ "title": "debugging.logging.title",
"type": "boolean",
"default": false,
- "description": "Write lldb-dap-proxy traffic to a log file in the extension's storage directory. For extension development only."
+ "description": "debugging.logging.info"
}
]
},
{
"type": "section",
- "title": "Tasks",
- "description": "Controls for the task system.",
+ "title": "tasks.title",
+ "description": "tasks.info",
"children": [
{
"key": "at.dcz.nova-zig.tasks.discover-steps",
- "title": "Discover Build Steps",
+ "title": "tasks.autodiscover.title",
"type": "boolean",
"default": true,
- "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."
+ "description": "tasks.autodiscover.info"
}
]
}
@@ -118,110 +126,94 @@
"configWorkspace": [
{
"type": "section",
- "title": "Tooling",
- "description": "Workspace-specific overrides for Zig and ZLS executable paths.",
+ "title": "config.general.title",
"children": [
{
"key": "at.dcz.nova-zig.toolchain.zig-path",
- "title": "Zig Executable",
+ "title": "zig.executable-path.title",
"type": "path",
"placeholder": "zig",
- "description": "Absolute path to the Zig executable."
- },
- {
- "key": "at.dcz.nova-zig.toolchain.zls-path",
- "title": "ZLS Executable",
- "type": "path",
- "placeholder": "zls",
- "description": "Absolute path to the ZLS language server executable."
- },
- {
- "key": "at.dcz.nova-zig.toolchain.lldb-dap-path",
- "title": "LLDB DAP Executable",
- "type": "path",
- "placeholder": "lldb-dap",
- "description": "Absolute path to the lldb-dap executable. Leave blank to discover it via xcrun or PATH."
+ "description": "setting.inherit.path-info",
+ "allowFiles": true,
+ "allowFolders": false,
+ "filetype": "public.unix-executable"
}
]
},
{
"type": "section",
- "title": "Language Server",
- "description": "Workspace-specific language server settings.",
+ "title": "zls.title",
+ "description": "zls.info",
"children": [
{
"key": "at.dcz.nova-zig.zls.enabled",
- "title": "Enable ZLS",
+ "title": "zls.enable.title",
"type": "enum",
"default": "inherit",
"values": [
- ["inherit", "Inherit from Global"],
- ["enabled", "Enabled"],
- ["disabled", "Disabled"]
+ ["inherit", "setting.inherit"],
+ ["enabled", "setting.enabled"],
+ ["disabled", "setting.disabled"]
],
- "description": "Enable diagnostics, completion, navigation, and other language-server features."
+ "description": "zls.enable.info"
},
{
- "key": "at.dcz.nova-zig.zls.build-on-save",
- "title": "Build On Save",
- "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.toolchain.zls-path",
+ "title": "zls.executable-path.title",
+ "type": "path",
+ "placeholder": "zls",
+ "description": "setting.inherit.path-info",
+ "allowFiles": true,
+ "allowFolders": false,
+ "filetype": "public.unix-executable"
},
{
- "key": "at.dcz.nova-zig.zls.debug",
- "title": "Debug Server Messages",
+ "key": "at.dcz.nova-zig.zls.build-on-save",
+ "title": "zls.build-on-save.title",
"type": "enum",
"default": "inherit",
"values": [
- ["inherit", "Inherit from Global"],
- ["enabled", "Enabled"],
- ["disabled", "Disabled"]
+ ["inherit", "setting.inherit"],
+ ["enabled", "setting.enabled"],
+ ["disabled", "setting.disabled"]
],
- "description": "Log ZLS traffic to the Extension Console while developing the extension."
+ "description": "zls.build-on-save.info"
}
]
},
{
"type": "section",
- "title": "Debug Adapter",
- "description": "Controls for the lldb-dap integration.",
+ "title": "debugging.title",
+ "description": "debugging.info",
"children": [
{
- "key": "at.dcz.nova-zig.debug-adapter.debug",
- "title": "Enable Proxy Log",
- "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."
+ "key": "at.dcz.nova-zig.toolchain.lldb-dap-path",
+ "title": "debugging.lldb-dap-path.title",
+ "type": "path",
+ "placeholder": "lldb-dap",
+ "description": "setting.inherit.path-info",
+ "allowFiles": true,
+ "allowFolders": false,
+ "filetype": "public.unix-executable"
}
]
},
{
"type": "section",
- "title": "Tasks",
- "description": "Workspace-specific task settings.",
+ "title": "tasks.title",
+ "description": "tasks.info",
"children": [
{
"key": "at.dcz.nova-zig.tasks.discover-steps",
- "title": "Discover Build Steps",
+ "title": "tasks.autodiscover.title",
"type": "enum",
"default": "inherit",
"values": [
- ["inherit", "Inherit from Global"],
- ["enabled", "Enabled"],
- ["disabled", "Disabled"]
+ ["inherit", "setting.inherit"],
+ ["enabled", "setting.enabled"],
+ ["disabled", "setting.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."
+ "description": "tasks.autodiscover.info"
}
]
}