Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Adds showTitle parameter to control Mermaid frontmatter title rendering across all diagram types (project graphs, ERDs, class diagrams).

Changes

  • Renderers: Introduced DiagramOptions record with ShowTitle property passed to Render() methods, replacing mutable state pattern
  • CLI: Added --show-title <true|false> option to all visualization commands (defaults to true)
  • MCP: Added showTitle parameter to all tool methods (GetProjectGraph, GetErd, GetClassDiagram)

Example

# Suppress title in output
projgraph visualize MySolution.sln --show-title false

# MCP call with title disabled
GetProjectGraph(path: "MySolution.sln", showTitle: false)

The stateless options-as-parameter approach ensures thread safety for singleton-registered renderers in long-lived hosts.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI mentioned this pull request Feb 10, 2026
Copilot AI changed the title [WIP] Add includeTitle option for Mermaid renderers Add configurable title rendering for Mermaid diagrams Feb 10, 2026
Copilot AI requested a review from HandyS11 February 10, 2026 17:10
@HandyS11 HandyS11 closed this Feb 10, 2026
@HandyS11 HandyS11 deleted the copilot/sub-pr-22 branch February 10, 2026 18:08
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