Skip to content

polish(extension): syntax-color the Inspect Evidence output channel#8

Merged
qmarcelle merged 1 commit into
mainfrom
polish/output-channel-yaml
Jul 17, 2026
Merged

polish(extension): syntax-color the Inspect Evidence output channel#8
qmarcelle merged 1 commit into
mainfrom
polish/output-channel-yaml

Conversation

@qmarcelle

Copy link
Copy Markdown
Contributor

Summary

  • The `workspace.json` output channel (`Inspect Evidence` command) was the one UI surface with zero styling — every other surface (tree icons, decorations, status bar, hover) already uses native ThemeIcon/ThemeColor.
  • The channel's content is already key: value / indented-block shaped (Decision:, reason:, evidence:, omitted partner:), so createOutputChannel("workspace.json", "yaml") colors it for free using VS Code's built-in YAML grammar — no new dependency, no content changes.
  • Deliberately not LogOutputChannel: it prepends a timestamp to every line, which would misrepresent a single synchronous snapshot render as a live log.

Test plan

  • tsc -p tsconfig.json clean
  • node --test out/test/*.check.js — 82/82 passing
  • Visual check in a live Extension Development Host (not run from this environment)

createOutputChannel("workspace.json") rendered as unstyled plain text
while every other surface (tree icons, decorations, status bar, hover)
already uses native ThemeIcon/ThemeColor. The channel's content is
already key:value/indented-block shaped (Decision:, reason:, evidence:,
omitted partner:), so passing languageId "yaml" (built into VS Code,
no new dependency) colors it for free — no content or grammar changes.

Not LogOutputChannel: it forces a timestamp onto every line, which
would misrepresent a single synchronous snapshot render as a live log.
Copilot AI review requested due to automatic review settings July 17, 2026 12:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qmarcelle
qmarcelle merged commit c14ef4e into main Jul 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants