Skip to content

Read MapScoped/MapTransient/MapSingleton in the generator - #152

Open
Mpdreamz wants to merge 1 commit into
mainfrom
heed/browse/issue-127-10dfbf
Open

Mpdreamz wants to merge 1 commit into
mainfrom
heed/browse/issue-127-10dfbf

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

Closes #127

The source generator only tracked Map<T>, so commands registered through MapTransient<T>(), MapScoped<T>() or MapSingleton<T>() on the hosting builder never made it into the generated parser (unknown command). Both the syntax filter and the semantic analysis now treat the three like Map<T>.

  • Test: HostingMapLifetimeTests runs the generator on each form. It fails for the three Map* lifetime forms without the fix; Map is the control.
  • Removed the "use Map(ServiceLifetime) instead" gotcha from the hosting skill.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Mpdreamz Mpdreamz added the fix A defect fixed (patch) label Nov 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A defect fixed (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generator ignores MapScoped<T>/MapTransient<T>/MapSingleton<T> on the hosting builder

1 participant