Completion for brand-mark names in brand fields #5

Closed
opened 2026-10-04 10:52:53 -07:00 by root-at-skic · 0 comments
Owner

Offer completion for brand values on architecture components.

Why: the schema types brand as any string (common.schema.json#/$defs/brandMark), so the YAML extension can't suggest anything. Users have to guess names. The bundled catalog has 107 marks (e.g. apache-kafka, argo, anthropic); aws, for example, is not in it.

How:

  • Load the catalog once from archify brands --json (marks[].id, title, aliases, category).
  • Register a CompletionItemProvider for .archify / *.architecture.json that triggers on brand: values; show the title and category as detail.
  • Add a warning diagnostic when a plain-name brand isn't in the catalog (unless it's a URL or {url, sha256} object). Point it to archify brands capture <url>.

Done when: completion works in YAML and JSON sources, with a unit test for the lookup.

Offer completion for `brand` values on architecture components. **Why:** the schema types `brand` as any string (`common.schema.json#/$defs/brandMark`), so the YAML extension can't suggest anything. Users have to guess names. The bundled catalog has 107 marks (e.g. `apache-kafka`, `argo`, `anthropic`); `aws`, for example, is not in it. **How:** - Load the catalog once from `archify brands --json` (`marks[].id`, `title`, `aliases`, `category`). - Register a `CompletionItemProvider` for `.archify` / `*.architecture.json` that triggers on `brand:` values; show the title and category as detail. - Add a warning diagnostic when a plain-name `brand` isn't in the catalog (unless it's a URL or `{url, sha256}` object). Point it to `archify brands capture <url>`. **Done when:** completion works in YAML and JSON sources, with a unit test for the lookup.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vscode-extensions/archify-vscode-ext#5