Skip to content

v0.0.21

Choose a tag to compare

@dkattan dkattan released this 21 Nov 19:34
· 163 commits to main since this release

v0.0.21 Release Notes

Unified serverReady trigger/action model; removed legacy shape; added vscodeCommand action; fire-and-forget httpRequest.

Highlights

Removed serverReady fields (path, line, command, httpRequest, pattern, immediateOnAttach). New unified serverReady structure:

interface ServerReady {
  trigger?: { path?: string; line?: number; pattern?: string }; // omit for immediate attach
  action:
    | { shellCommand: string }
    | {
        httpRequest: {
          url: string;
          method?: string;
          headers?: Record<string, string>;
          body?: string;
        };
      }
    | { vscodeCommand: { command: string; args?: unknown[] } };
}

Added

  • vscodeCommand readiness action.

Changed

  • HTTP request action now fire‑and‑forget (non-blocking) to avoid delaying user breakpoint continuation.

Schema

  • Replaced prior multi-variant + mutual exclusion schema with unified trigger + discriminated action union; action required, trigger optional.

Docs

  • README server readiness section rewritten with new examples (breakpoint, pattern, immediate attach, vscodeCommand) and Azure Functions attach sequence diagram.

Tests

  • Updated existing serverReady tests to new structure (shellCommand + httpRequest).
  • Added serverReadyVscodeCommand test.
  • Removed obsolete auto-select launch configuration test file.

Internal

  • Introduced executeServerReadyAction helper centralizing phases (entry, late, immediate).
  • Simplified advancement logic after serverReady hits. Enforced NO FALLBACK principle (no legacy inference).

Upgrade Guidance

  • Breakpoint mode: wrap previous path/line in trigger.
  • Pattern mode: move pattern to trigger.pattern.
  • Immediate attach: omit trigger entirely (same effect as prior immediateOnAttach: true).