zed/crates/task/src
Daniel Strobusch 71de6edd93 Fix VSCode tasks.json parsing for tasks without explicit labels (#47754)
Implements automatic label generation for VSCode tasks that don't have
explicit 'label' fields, matching VSCode's behavior.

Changes:
- Made label field optional in VsCodeTaskDefinition deserialization
- Implemented custom deserializer to auto-generate labels:
  - npm tasks: 'npm: {script}' (e.g., 'npm: start')
  - shell tasks: first word of command (e.g., 'echo')
  - gulp tasks: 'gulp: {task}' (e.g., 'gulp: build')
  - fallback: 'Untitled Task'
- Added test data file with tasks without labels
- Added test cases

Closes #47749

Release Notes:

- Fixed: VSCode tasks.json files with tasks missing explicit `label`
fields now parse correctly. Labels are auto-generated matching VSCode's
behavior (e.g., "npm: start").
2026-02-12 16:30:47 +00:00
..
adapter_schema.rs Default `#[schemars(deny_unknown_fields)] for json-language-server schemas (#33883) 2025-07-04 00:57:43 +00:00
debug_format.rs Allow trailing commas in builtin JSONC schemas (#43854) 2025-12-04 15:37:32 -05:00
serde_helpers.rs Migrate to schemars version 1.0 (#33635) 2025-06-30 21:07:28 +00:00
static_source.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
task.rs debugger: Wrap TaskContext in Arc to reduce cloning overhead (#47087) 2026-02-05 10:37:39 +00:00
task_template.rs tasks: Show error for unknown ZED_ variables (#45621) 2026-01-26 19:47:36 +00:00
vscode_debug_format.rs debugger: Allow users to include PickProcessId in debug tasks and resolve Pid (#42913) 2025-11-20 10:12:59 -05:00
vscode_format.rs Fix VSCode tasks.json parsing for tasks without explicit labels (#47754) 2026-02-12 16:30:47 +00:00