Skip to content

Commit d13bbec

Browse files
committed
fix(core): include plugin comment annotations in the endpoint annotations summary
Built-in comment annotations are tracked and shown in the per-endpoint Debug "{routine} annotations: [...]" summary, but plugin-claimed lines (handled via IEndpointCreateHandler.HandleCommentLine) were logged only at Trace and omitted from the summary. Track them too, so plugin annotations (e.g. mcp, openapi) are as visible as built-ins.
1 parent df45131 commit d13bbec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

NpgsqlRest/Defaults/DefaultCommentParser.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,9 @@ internal static partial class DefaultCommentParser
525525
if (handled is { } result)
526526
{
527527
CommentLogger?.LogTrace("Plugin comment annotation '{Label}' for {Description}", result.Label, description);
528+
// Include plugin-claimed annotations (e.g. `mcp`, `openapi …`) in the per-endpoint
529+
// annotations summary, so they're as visible as built-in annotations.
530+
TrackAnnotation(line);
528531
if (result.RequestsEndpoint)
529532
{
530533
anyHandlerRequestedEndpoint = true;

0 commit comments

Comments
 (0)